41 lines
767 B
Go
41 lines
767 B
Go
package test
|
|
|
|
// Code generated by github.com/Khan/genql, DO NOT EDIT.
|
|
|
|
import (
|
|
"github.com/Khan/genql/graphql"
|
|
)
|
|
|
|
type QueryWithSlicesResponse struct {
|
|
User QueryWithSlicesUser `json:"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,
|
|
`
|
|
query QueryWithSlices {
|
|
user {
|
|
emails
|
|
emailsOrNull
|
|
emailsWithNulls
|
|
emailsWithNullsOrNull
|
|
}
|
|
}
|
|
`,
|
|
&retval,
|
|
nil,
|
|
)
|
|
return &retval, err
|
|
}
|