-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
schema-ast reorders parts of schema on each generation #4919
Comments
The schema doesn't actually change, right? just the order of the items, based on the changes from the introspection.
How do you save the introspection file? |
Yes, only the order of generated items is changed.
As you can see in our config: We download it from our endpoint over HTTPS and store it in |
I see. Maybe we can use |
@Eddman I implemented this in: #5034 |
Available in |
@dotansimha Tested and can confirm it works as expected. Thanks! |
Describe the bug
Our introspection query returns items in random order as the generation is asynchronous and rendered when calculated.
On the
schema-ast
side it just renders in that random order. That way our schema on the client side constantly changes.With
graphql@14
it was not an issue. Withgraphql@15
schema-ast
does not do any post-processing and reshuffles generated schema.To Reproduce
Steps to reproduce the behavior:
codegen.yml
config file:Expected behavior
Schema is ordered and does not change.
Environment:
@graphql-codegen/schema-ast
:~1.17.8
v12.16.2
Additional context
The text was updated successfully, but these errors were encountered: