aws / aws/aws-appsync-community
return fields in lambda resolver
- Dominant language
- HTML
- Stars
- 507
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Appsync is not sending query/mutation return fields list in lambda resolver event,
Getting this JSON:
Logs of lambda resolver event:
`{
"typeName": "Query",
"fieldName": "getSalonById",
"arguments": {
"salonId",
"currentLocation"
},
"identity": {
},
"defaultAuthStrategy": "ALLOW"
},
"source": null,
"request": {
},
"prev": {
"result": {}
}
}`
Appsync Query
`
export const getSalonById = /* GraphQL */ "
query GetSalonById($salonId: String, $currentLocation: geoCoords) {
getSalonById(salonId: $salonId, currentLocation: $currentLocation) {
_id
name
}
}
"
`
I want list of required fields(_id, name) but not getting it in my lambda resolver.
Contributor guide
Research direction
The report names the AppSync lambda resolver event and the getSalonById GraphQL query; start by reproducing that query and comparing its requested _id and name fields with the logged event. Done means establishing whether selection fields are exposed in this resolver event and recording the supported behavior or a concrete change location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, graphql, javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100