Skip to content

Commit

Permalink
test for uppercasing aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminjkraft committed Apr 15, 2021
1 parent 1bd7f7c commit ade01c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion generate/testdata/queries/QueryWithAlias.graphql
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
query QueryWithAlias { User: user { ID: id } }
query QueryWithAlias {
User: user {
ID: id
otherID: id
}
}
4 changes: 3 additions & 1 deletion generate/testdata/queries/QueryWithAlias.graphql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generate/testdata/queries/QueryWithAlias.graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"operations": [
{
"operationName": "QueryWithAlias",
"query": "\nquery QueryWithAlias {\n\tUser: user {\n\t\tID: id\n\t}\n}\n",
"query": "\nquery QueryWithAlias {\n\tUser: user {\n\t\tID: id\n\t\totherID: id\n\t}\n}\n",
"sourceLocation": "testdata/queries/QueryWithAlias.graphql"
}
]
Expand Down

0 comments on commit ade01c9

Please sign in to comment.