Open zoevkay opened 2 years ago
Can you try with the latest 0.16.0 version?
Hi @frederikhors , thanks for your patience. A colleague ran 0.16.0 and received the same results as 0.13.0. An example snippet:
{
"kind": "SCALAR",
"name": "EpochMilliseconds",
"description": "",
"fields": [],
"inputFields": [],
"interfaces": [],
"enumValues": [],
"possibleTypes": []
},
What happened?
When running an introspection query against a GraphQL schema implemented with gqlgen, I receive the following (snippet of the full response):
What did you expect?
Per the GraphQL spec, I expect
"fields"
to benull
for all types except OBJECT and iNTERFACE, from this documentation:Ie, I'd expect any OBJECT or INTERFACE to have
"fields": []
but other types to return"fields": null
. The spec behavior is what I've seen with other GraphQL APIs.Minimal graphql.schema and models to reproduce
versions
gqlgen version
?gqlgen v0.13.0
(I don't see a fix in the changelog after this version, apologies if I've missed it)go version
?1.16
Thanks for your time!