aws / aws/aws-appsync-community

return fields in lambda resolver

Open
#183 2 comments 0 reactions 0 assignees View on GitHub
question
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.