graphql-tools
graphql-tools copied to clipboard
buildOperationNodeForField formatting variable declaring and usage in different ways
For a graphql query declared like this:
user(
order_by: [user_order_by!]
): [user!]!
If I Print (using graphql-js) the result of buildOperationsNodeForField, it's is returning something like this:
query user($order_by: [user_order_by!]) {
user(order_by: $orderBy, where: $where) {
id
}
}
It's keeping underscore on the variable declaration, but then applying camelCase when using the variable.
Would you create a draft PR so we can help you?
Closing the issue because a reproduction is missing. Let us know if the issue still remains and feel free to create a new issue with a reproduction. Thanks!