-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introspection query does not have stable sort order of fields and types #1426
Comments
We use the introspection to generate types on the frontend, but because the introspection is unstable, the generated code is also unstable, which creates false merge/rebase conflicts. |
Same here. I fixed with custom script. |
@frederikhors Any chance you can share said script? This makes the life with gqlgen pretty painful. |
@nyergler; here is a plugin we wrote that does it by wrapping each field with middleware and sorts the results if it's an introspection field. https://pkg.go.dev/github.com/ec2-software/gqlgen-introspect-filter#SortPlugin |
Thanks for the pointer, @duckbrain; I have a PR open to make the ordering stable, but a plugin may wind up being more straight-forward for tracking upstream. |
What happened?
Introspection query does not have stable sort order of fields and types
versions
gqlgen version
? 0.13.0The text was updated successfully, but these errors were encountered: