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
I added a field __name__ in my schema.graphqls file:
type Person {
__name__: String
age: Int
}
I ran go generate to generate the corresponding model and got this error:
failed to load schema: internal/pkg/graph/schema.graphqls:21: Name "__name__" must not begin with "__",
which is reserved by GraphQL introspection.exit status 1
The response from upstream service has the __name__ field.
What did you expect?
I expect to be able to use the __name__ field in the schema. If there is some way around this, that can be helpful too.
Minimal graphql.schema and models to reproduce
type Person {
__name__: String
age: Int
}
versions
gqlgen version? v0.11.3
go version? go version go1.14.2 linux/amd64
dep or go modules? go mod.
The text was updated successfully, but these errors were encountered:
What happened?
I added a field
__name__
in my schema.graphqls file:I ran
go generate
to generate the corresponding model and got this error:The response from upstream service has the
__name__
field.What did you expect?
I expect to be able to use the
__name__
field in the schema. If there is some way around this, that can be helpful too.Minimal graphql.schema and models to reproduce
versions
gqlgen version
? v0.11.3go version
? go version go1.14.2 linux/amd64The text was updated successfully, but these errors were encountered: