handle nested lists correctly
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
query ListOfListsOfLists {
|
||||
listOfListsOfLists
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package test
|
||||
|
||||
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
||||
|
||||
import (
|
||||
"github.com/Khan/genqlient/graphql"
|
||||
)
|
||||
|
||||
type ListOfListsOfListsResponse struct {
|
||||
ListOfListsOfLists [][][]string `json:"listOfListsOfLists"`
|
||||
}
|
||||
|
||||
func ListOfListsOfLists(
|
||||
client graphql.Client,
|
||||
) (*ListOfListsOfListsResponse, error) {
|
||||
var retval ListOfListsOfListsResponse
|
||||
err := client.MakeRequest(
|
||||
nil,
|
||||
"ListOfListsOfLists",
|
||||
`
|
||||
query ListOfListsOfLists {
|
||||
listOfListsOfLists
|
||||
}
|
||||
`,
|
||||
&retval,
|
||||
nil,
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"operations": [
|
||||
{
|
||||
"operationName": "ListOfListsOfLists",
|
||||
"query": "\nquery ListOfListsOfLists {\n\tlistOfListsOfLists\n}\n",
|
||||
"sourceLocation": "testdata/queries/ListOfListsOfLists.graphql"
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
@@ -67,6 +67,7 @@ type Query {
|
||||
convert(dt: DateTime!, tz: String): DateTime!
|
||||
maybeConvert(dt: DateTime, tz: String): DateTime
|
||||
getJunk: Junk
|
||||
listOfListsOfLists: [[[String!]!]!]!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
|
||||
Reference in New Issue
Block a user