This allows client code to see the operation (query or mutation) exactly
as genqlient sends it over the wire. This data was already available in
the generated safelist.json file, but now it's easily available from Go
code as well.
Fixes #236
I have:
- [x] Written a clear PR title and description (above)
- [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla)
- [x] Added tests covering my changes, if applicable
- [x] Included a link to the issue fixed, if applicable
- [x] Included documentation, for new features
- [x] Added an entry to the changelog
47 lines
1.0 KiB
Go
47 lines
1.0 KiB
Go
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
|
|
|
package test
|
|
|
|
import (
|
|
"github.com/Khan/genqlient/graphql"
|
|
)
|
|
|
|
// ListOfListsOfListsResponse is returned by ListOfListsOfLists on success.
|
|
type ListOfListsOfListsResponse struct {
|
|
ListOfListsOfLists [][][]string `json:"listOfListsOfLists"`
|
|
}
|
|
|
|
// GetListOfListsOfLists returns ListOfListsOfListsResponse.ListOfListsOfLists, and is useful for accessing the field via an interface.
|
|
func (v *ListOfListsOfListsResponse) GetListOfListsOfLists() [][][]string {
|
|
return v.ListOfListsOfLists
|
|
}
|
|
|
|
// The query or mutation executed by ListOfListsOfLists.
|
|
const ListOfListsOfListsOperation = `
|
|
query ListOfListsOfLists {
|
|
listOfListsOfLists
|
|
}
|
|
`
|
|
|
|
func ListOfListsOfLists(
|
|
client graphql.Client,
|
|
) (*ListOfListsOfListsResponse, error) {
|
|
req := &graphql.Request{
|
|
OpName: "ListOfListsOfLists",
|
|
Query: ListOfListsOfListsOperation,
|
|
}
|
|
var err error
|
|
|
|
var data ListOfListsOfListsResponse
|
|
resp := &graphql.Response{Data: &data}
|
|
|
|
err = client.MakeRequest(
|
|
nil,
|
|
req,
|
|
resp,
|
|
)
|
|
|
|
return &data, err
|
|
}
|
|
|