Is it possible to prefix the generated operation's graphql string? #4094
-
So, say we have the following operation: const USER = gql`
query User {
user(username: "@ada") {
name
}
}
`; Is there a way to tell the generator to prefix the query with some string e.g "Local"? The generated document would be the following: const UserDocument = gql`
query Local_User {
user(username: "@ada") {
name
}
}
`; |
Beta Was this translation helpful? Give feedback.
Answered by
dotansimha
May 27, 2020
Replies: 1 comment
-
At the moment, no. GraphQL Code Generator doesn't deal with transforming your GraphQL schema or your GraphQL operations. It just generates code based on it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gmencz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment, no. GraphQL Code Generator doesn't deal with transforming your GraphQL schema or your GraphQL operations. It just generates code based on it.