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
Observe the "Response" tab has duplicate __typename properties
versions
go run github.com/99designs/gqlgen version?
v0.17.56
go version?
go version go1.23.3 darwin/arm64
The text was updated successfully, but these errors were encountered:
dkempner
changed the title
Selecting __typename outside of a union and inside of a union results in duplicate __typename in response
Selecting __typename outside of a union and inside of a union results in duplicate __typename in response
Nov 14, 2024
dkempner
changed the title
Selecting __typename outside of a union and inside of a union results in duplicate __typename in response
Duplicate __typename in response for nested union queries
Nov 14, 2024
What happened?
When running a query with this shape, the response that's returned is technically not valid JSON because it has duplicate
__typename
properties.Query
Response
What did you expect?
Duplicate properties should be deduplicated.
Minimal graphql.schema and models to reproduce
go run server.go
__typename
propertiesversions
go run github.com/99designs/gqlgen version
?v0.17.56
go version
?go version go1.23.3 darwin/arm64
The text was updated successfully, but these errors were encountered: