2 Answers
- Newest
- Most votes
- Most comments
0
To help you better, please enable Logs (with Field Log Level - "ALL") for your API from the Settings page of your AppSync console. Execute the same query and check for the evaluated "Request" and "Response" Mapping Templates in the CloudWatch logs. This should give you some indication on why the counties is resolved to an empty array.
Also, if you still run into issues, please post the obfuscated Request/Response mapping content from your logs so I can help further.
answered 5 years ago
0
The "field_locations" is the section of the elastic search result that is used. But I just figured out my issue. I forgot to include the array on field_location. starting with the second #if and again in the #foreach I should of had field_locations[0]
answered 5 years ago
Relevant content
- Accepted Answer
- asked 7 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 months ago