test for uppercasing aliases

This commit is contained in:
Ben Kraft
2021-04-15 15:50:22 -07:00
parent 1bd7f7cb16
commit ade01c9280
3 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -1 +1,6 @@
query QueryWithAlias { User: user { ID: id } }
query QueryWithAlias {
User: user {
ID: id
otherID: id
}
}
+3 -1
View File
@@ -12,7 +12,8 @@ type QueryWithAliasResponse struct {
}
type QueryWithAliasUser struct {
ID mypkg.ID `json:"ID"`
ID mypkg.ID `json:"ID"`
OtherID mypkg.ID `json:"otherID"`
}
func QueryWithAlias(
@@ -26,6 +27,7 @@ func QueryWithAlias(
query QueryWithAlias {
User: user {
ID: id
otherID: id
}
}
`,
+1 -1
View File
@@ -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"
}
]