test for uppercasing aliases
This commit is contained in:
+6
-1
@@ -1 +1,6 @@
|
||||
query QueryWithAlias { User: user { ID: id } }
|
||||
query QueryWithAlias {
|
||||
User: user {
|
||||
ID: id
|
||||
otherID: id
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -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
@@ -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"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user