Is there anyway to sort gql.ts and graphql.ts #9727
Replies: 1 comment
-
here is the answer ardatan/graphql-tools#5605 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
everytime I run graphql codegen I get the files gql.ts and graphql.ts sorted in a different order.
I do not know if this is because my configuration has sort false. I'm currently using sort: false to avoid enum to be reordered.
const config: CodegenConfig = {
sort: false,
...
}
Ideally if there is a solution that keep initial order of enums but reorder the generated lines in ts files that would be awesome
Beta Was this translation helpful? Give feedback.
All reactions