graphql-go / graphql-go/graphql
response with both errors and data, data contains all fields and ignores requested fields
Open
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 845
- PR merge metrics
- No merged PRs in 30d
Description
In a case where I return both response data and errors, the data ignores the requested graphql fields and responds with all the fields. Is this intended functionality or is this a bug? This can really pose an issue when one tries to marshal the result data into a struct and the struct and data contains cyclic embedded structs, e.g. Song belongs to an album and Album has songs.
Contributor guide
Assessment
This issue has not been assessed yet.