Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Every time a build occurs, a new code generation might take place.
If a new code generation takes place, the new generated code is not per se in the same order, and causes a difference to be seen by git, and possibly checked in if we don't look carefully. The essence of the generated code is however exactly the same.
A original generated code could be a line for query 1 and a line for query 2.
In the regenerated code, the lines could be in a different order.
The solution you'd like
Have the generated lines always in the same order.
If the code lines for the query singletons are generated one after the other, generate them in the same order, every time, for example in alphabetical order.
Is your feature request related to a problem?
Every time a build occurs, a new code generation might take place. If a new code generation takes place, the new generated code is not per se in the same order, and causes a difference to be seen by git, and possibly checked in if we don't look carefully. The essence of the generated code is however exactly the same.
A original generated code could be a line for query 1 and a line for query 2.
In the regenerated code, the lines could be in a different order.
The solution you'd like
Have the generated lines always in the same order.
If the code lines for the query singletons are generated one after the other, generate them in the same order, every time, for example in alphabetical order.
Product
Strawberry Shake