You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with multiple operations in one query (happens a lot when using browser-based gql clients for testing), the gateway responds with error adding scrub fields: could not find field for point. After a closer look, the targetSelection in the generateScrubFieldsWalk method contains only the first operation out of all present in the query.
When working with multiple operations in one query (happens a lot when using browser-based gql clients for testing), the gateway responds with
error adding scrub fields: could not find field for point
. After a closer look, thetargetSelection
in thegenerateScrubFieldsWalk
method contains only the first operation out of all present in the query.The spec suggests that the operation should be taken by name: https://spec.graphql.org/October2021/#sec-Executing-Requests
The culprit is most likely the array selector here:
gateway/plan.go
Line 115 in 0ac544a
the
operationName
should be passed in thePlanningContext
inGetPlans
and then used to select the correct operationThe text was updated successfully, but these errors were encountered: