1f442da041
Slightly uglier filenames, but less code and free diffing! Approved in ADR-466 for Khan use. Fixes #23.
52 lines
1.1 KiB
Go
52 lines
1.1 KiB
Go
package test
|
|
|
|
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
|
|
|
import (
|
|
"github.com/Khan/genqlient/graphql"
|
|
)
|
|
|
|
// QueryWithSlicesResponse is returned by QueryWithSlices on success.
|
|
type QueryWithSlicesResponse struct {
|
|
// user looks up a user by some stuff.
|
|
//
|
|
// See UserQueryInput for what stuff is supported.
|
|
// If query is null, returns the current user.
|
|
User QueryWithSlicesUser `json:"user"`
|
|
}
|
|
|
|
// QueryWithSlicesUser includes the requested fields of the GraphQL type User.
|
|
// The GraphQL type's documentation follows.
|
|
//
|
|
// A User is a user!
|
|
type QueryWithSlicesUser struct {
|
|
Emails []string `json:"emails"`
|
|
EmailsOrNull []string `json:"emailsOrNull"`
|
|
EmailsWithNulls []string `json:"emailsWithNulls"`
|
|
EmailsWithNullsOrNull []string `json:"emailsWithNullsOrNull"`
|
|
}
|
|
|
|
func QueryWithSlices(
|
|
client graphql.Client,
|
|
) (*QueryWithSlicesResponse, error) {
|
|
var retval QueryWithSlicesResponse
|
|
err := client.MakeRequest(
|
|
nil,
|
|
"QueryWithSlices",
|
|
`
|
|
query QueryWithSlices {
|
|
user {
|
|
emails
|
|
emailsOrNull
|
|
emailsWithNulls
|
|
emailsWithNullsOrNull
|
|
}
|
|
}
|
|
`,
|
|
&retval,
|
|
nil,
|
|
)
|
|
return &retval, err
|
|
}
|
|
|