get-graphql-schema icon indicating copy to clipboard operation
get-graphql-schema copied to clipboard

feat: Add option to sort schema using lexicographicSortSchema

Open clord opened this issue 5 years ago • 2 comments

This can be helpful for avoiding merge issues, for example.

clord avatar Jun 01 '20 20:06 clord

@maticzav not sure who to ping. I'm using get-graphql-schema for a project but the schema is always changing order on the backend, causing merge conflicts. we need to commit since there is no single source of truth for schema, it depends on which feature is being worked on. this new option would sort using built-in lexicographic schema sorting.

clord avatar Jun 02 '20 15:06 clord

Also interested in this, I tried jq --sort-keys and json-sort-cli and neither provided a stable ordering.

I'll note that even the non-JSON output changes order sometimes.

beaugunderson avatar Mar 08 '21 20:03 beaugunderson