graphql-go / graphql-go/graphql

response with both errors and data, data contains all fields and ignores requested fields

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.