graphiti-api / graphiti

Stylish Graph APIs
https://www.graphiti.dev/
MIT License
960 stars 138 forks source link

Sort types in generated schema #407

Closed PChambino closed 4 months ago

PChambino commented 2 years ago

Otherwise, added types order may depend on file load order which is not always deterministic if the files don't depend on each other.

We use the generated Graphiti schema as a CI check which requires the generations to be deterministic.

Related past PR: https://github.com/graphiti-api/graphiti/pull/313