The change here is setting a maxTokenLimit to 15000 which is causing an issue with gqlgen, which uses this library. There does not appear to be a way to change the default when using this with gqlgen today.
The ParseQuery was set to a default of 0, which I've confirmed eliminates this breaking change on ParseSchema
What happened?
The change here is setting a maxTokenLimit to
15000
which is causing an issue withgqlgen
, which uses this library. There does not appear to be a way to change the default when using this with gqlgen today.The
ParseQuery
was set to a default of 0, which I've confirmed eliminates this breaking change onParseSchema
What did you expect?
Ability to continue to generate our graphql resolvers using gqlgen, however, generation of this https://github.com/datumforge/datum/blob/main/internal/graphapi/generate/generate.go API now fails on this limit:
Minimal graphql.schema and models to reproduce
On the above mentioned repo:
versions
go list -m github.com/vektah/gqlparser/v2
?>= v2.5.13
go version
? 1.22.4