[gatsby-plugin-schema-snapshot] schema.gql output does not allow for developers to track and merge changes #32412
Replies: 1 comment 1 reply
-
The way I understand what you are saying is that the output of Is it correct to put it this way? If yes, then it makes perfect sense to me. It should be relatively straightforward to implement. We print types here: gatsby/packages/gatsby/src/schema/print.js Line 152 in 5f406a9 Essentially we need to sort Happy to accept a PR with this enhancement if you are interested! |
Beta Was this translation helpful? Give feedback.
-
Preliminary Checks
Description
The schema.gql appears to get completely rewritten each time the schema changes. This makes managing this file in source control difficult, especially when other developers need to see what was changed.
It would be ideal if there was some mechanism for sorting the file in order for the output to be more consistent.
Reproduction Link
https://cant-share-the-code-because-its-private.com
Steps to Reproduce
Expected Result
The only changes to the existing schema.gql file should be a new timestamp and the new type for the merge.
Actual Result
The schema.gql file gets entirely rewritten with git being unable to track changes.
Environment
Config Flags
No response
Beta Was this translation helpful? Give feedback.
All reactions