Rename the query constant to have an underscore in it. (#241)

We got reports of conflicts with the old constant-name and symbols that
people were defining in their app.
This commit is contained in:
Craig Silverstein
2022-11-22 14:12:38 -08:00
committed by GitHub
parent 587f77046b
commit e3227388fe
57 changed files with 148 additions and 148 deletions
+4 -4
View File
@@ -70,7 +70,7 @@ func (v *getViewerViewerUser) GetMyName() string { return v.MyName }
func (v *getViewerViewerUser) GetCreatedAt() time.Time { return v.CreatedAt } func (v *getViewerViewerUser) GetCreatedAt() time.Time { return v.CreatedAt }
// The query or mutation executed by getUser. // The query or mutation executed by getUser.
const getUserOperation = ` const getUser_Operation = `
query getUser ($Login: String!) { query getUser ($Login: String!) {
user(login: $Login) { user(login: $Login) {
theirName: name theirName: name
@@ -87,7 +87,7 @@ func getUser(
) (*getUserResponse, error) { ) (*getUserResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "getUser", OpName: "getUser",
Query: getUserOperation, Query: getUser_Operation,
Variables: &__getUserInput{ Variables: &__getUserInput{
Login: Login, Login: Login,
}, },
@@ -107,7 +107,7 @@ func getUser(
} }
// The query or mutation executed by getViewer. // The query or mutation executed by getViewer.
const getViewerOperation = ` const getViewer_Operation = `
query getViewer { query getViewer {
viewer { viewer {
MyName: name MyName: name
@@ -122,7 +122,7 @@ func getViewer(
) (*getViewerResponse, error) { ) (*getViewerResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "getViewer", OpName: "getViewer",
Query: getViewerOperation, Query: getViewer_Operation,
} }
var err error var err error
+2 -2
View File
@@ -1,5 +1,5 @@
// The query or mutation executed by {{.Name}}. // The query or mutation executed by {{.Name}}.
const {{.Name}}Operation = `{{$.Body}}` const {{.Name}}_Operation = `{{$.Body}}`
{{.Doc}} {{.Doc}}
func {{.Name}}( func {{.Name}}(
@@ -18,7 +18,7 @@ func {{.Name}}(
) (*{{.ResponseName}}, {{if .Config.Extensions -}}map[string]interface{},{{end}} error) { ) (*{{.ResponseName}}, {{if .Config.Extensions -}}map[string]interface{},{{end}} error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "{{.Name}}", OpName: "{{.Name}}",
Query: {{.Name}}Operation, Query: {{.Name}}_Operation,
{{if .Input -}} {{if .Input -}}
Variables: &{{.Input.GoName}}{ Variables: &{{.Input.GoName}}{
{{range .Input.Fields -}} {{range .Input.Fields -}}
@@ -1341,7 +1341,7 @@ func (v *ComplexInlineFragmentsRootTopic) GetSchoolGrade() string { return v.Sch
func (v *ComplexInlineFragmentsRootTopic) GetName() string { return v.Name } func (v *ComplexInlineFragmentsRootTopic) GetName() string { return v.Name }
// The query or mutation executed by ComplexInlineFragments. // The query or mutation executed by ComplexInlineFragments.
const ComplexInlineFragmentsOperation = ` const ComplexInlineFragments_Operation = `
query ComplexInlineFragments { query ComplexInlineFragments {
root { root {
id id
@@ -1439,7 +1439,7 @@ func ComplexInlineFragments(
) (*ComplexInlineFragmentsResponse, error) { ) (*ComplexInlineFragmentsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ComplexInlineFragments", OpName: "ComplexInlineFragments",
Query: ComplexInlineFragmentsOperation, Query: ComplexInlineFragments_Operation,
} }
var err error var err error
@@ -1740,7 +1740,7 @@ type VideoFieldsThumbnail struct {
func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id } func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id }
// The query or mutation executed by ComplexNamedFragments. // The query or mutation executed by ComplexNamedFragments.
const ComplexNamedFragmentsOperation = ` const ComplexNamedFragments_Operation = `
query ComplexNamedFragments { query ComplexNamedFragments {
... on Query { ... on Query {
... QueryFragment ... QueryFragment
@@ -1805,7 +1805,7 @@ func ComplexNamedFragments(
) (*ComplexNamedFragmentsResponse, error) { ) (*ComplexNamedFragmentsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ComplexNamedFragments", OpName: "ComplexNamedFragments",
Query: ComplexNamedFragmentsOperation, Query: ComplexNamedFragments_Operation,
} }
var err error var err error
@@ -2347,7 +2347,7 @@ type TopicFieldsRelatedTopic struct {
func (v *TopicFieldsRelatedTopic) GetId() testutil.ID { return v.Id } func (v *TopicFieldsRelatedTopic) GetId() testutil.ID { return v.Id }
// The query or mutation executed by CovariantInterfaceImplementation. // The query or mutation executed by CovariantInterfaceImplementation.
const CovariantInterfaceImplementationOperation = ` const CovariantInterfaceImplementation_Operation = `
query CovariantInterfaceImplementation { query CovariantInterfaceImplementation {
randomItem { randomItem {
__typename __typename
@@ -2397,7 +2397,7 @@ func CovariantInterfaceImplementation(
) (*CovariantInterfaceImplementationResponse, error) { ) (*CovariantInterfaceImplementationResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "CovariantInterfaceImplementation", OpName: "CovariantInterfaceImplementation",
Query: CovariantInterfaceImplementationOperation, Query: CovariantInterfaceImplementation_Operation,
} }
var err error var err error
@@ -175,7 +175,7 @@ func (v *__CustomMarshalInput) __premarshalJSON() (*__premarshal__CustomMarshalI
} }
// The query or mutation executed by CustomMarshal. // The query or mutation executed by CustomMarshal.
const CustomMarshalOperation = ` const CustomMarshal_Operation = `
query CustomMarshal ($date: Date!) { query CustomMarshal ($date: Date!) {
usersBornOn(date: $date) { usersBornOn(date: $date) {
id id
@@ -190,7 +190,7 @@ func CustomMarshal(
) (*CustomMarshalResponse, error) { ) (*CustomMarshalResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "CustomMarshal", OpName: "CustomMarshal",
Query: CustomMarshalOperation, Query: CustomMarshal_Operation,
Variables: &__CustomMarshalInput{ Variables: &__CustomMarshalInput{
Date: date, Date: date,
}, },
@@ -204,7 +204,7 @@ func (v *__CustomMarshalSliceInput) __premarshalJSON() (*__premarshal__CustomMar
} }
// The query or mutation executed by CustomMarshalSlice. // The query or mutation executed by CustomMarshalSlice.
const CustomMarshalSliceOperation = ` const CustomMarshalSlice_Operation = `
query CustomMarshalSlice ($datesss: [[[Date!]!]!]!, $datesssp: [[[Date!]!]!]!) { query CustomMarshalSlice ($datesss: [[[Date!]!]!]!, $datesssp: [[[Date!]!]!]!) {
acceptsListOfListOfListsOfDates(datesss: $datesss) acceptsListOfListOfListsOfDates(datesss: $datesss)
withPointer: acceptsListOfListOfListsOfDates(datesss: $datesssp) withPointer: acceptsListOfListOfListsOfDates(datesss: $datesssp)
@@ -218,7 +218,7 @@ func CustomMarshalSlice(
) (*CustomMarshalSliceResponse, error) { ) (*CustomMarshalSliceResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "CustomMarshalSlice", OpName: "CustomMarshalSlice",
Query: CustomMarshalSliceOperation, Query: CustomMarshalSlice_Operation,
Variables: &__CustomMarshalSliceInput{ Variables: &__CustomMarshalSliceInput{
Datesss: datesss, Datesss: datesss,
Datesssp: datesssp, Datesssp: datesssp,
@@ -29,7 +29,7 @@ type convertTimezoneResponse struct {
func (v *convertTimezoneResponse) GetConvert() time.Time { return v.Convert } func (v *convertTimezoneResponse) GetConvert() time.Time { return v.Convert }
// The query or mutation executed by convertTimezone. // The query or mutation executed by convertTimezone.
const convertTimezoneOperation = ` const convertTimezone_Operation = `
query convertTimezone ($dt: DateTime!, $tz: String) { query convertTimezone ($dt: DateTime!, $tz: String) {
convert(dt: $dt, tz: $tz) convert(dt: $dt, tz: $tz)
} }
@@ -42,7 +42,7 @@ func convertTimezone(
) (*convertTimezoneResponse, error) { ) (*convertTimezoneResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "convertTimezone", OpName: "convertTimezone",
Query: convertTimezoneOperation, Query: convertTimezone_Operation,
Variables: &__convertTimezoneInput{ Variables: &__convertTimezoneInput{
Dt: dt, Dt: dt,
Tz: tz, Tz: tz,
@@ -21,7 +21,7 @@ func (v *EmptyInterfaceResponse) GetGetComplexJunk() []map[string]*[]*map[string
} }
// The query or mutation executed by EmptyInterface. // The query or mutation executed by EmptyInterface.
const EmptyInterfaceOperation = ` const EmptyInterface_Operation = `
query EmptyInterface { query EmptyInterface {
getJunk getJunk
getComplexJunk getComplexJunk
@@ -33,7 +33,7 @@ func EmptyInterface(
) (*EmptyInterfaceResponse, error) { ) (*EmptyInterfaceResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "EmptyInterface", OpName: "EmptyInterface",
Query: EmptyInterfaceOperation, Query: EmptyInterface_Operation,
} }
var err error var err error
@@ -267,7 +267,7 @@ type VideoFieldsParentTopic struct {
func (v *VideoFieldsParentTopic) GetVideoChildren() []ChildVideoFields { return v.VideoChildren } func (v *VideoFieldsParentTopic) GetVideoChildren() []ChildVideoFields { return v.VideoChildren }
// The query or mutation executed by ComplexNamedFragments. // The query or mutation executed by ComplexNamedFragments.
const ComplexNamedFragmentsOperation = ` const ComplexNamedFragments_Operation = `
query ComplexNamedFragments { query ComplexNamedFragments {
... QueryFragment ... QueryFragment
} }
@@ -309,7 +309,7 @@ func ComplexNamedFragments(
) (*InnerQueryFragment, error) { ) (*InnerQueryFragment, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ComplexNamedFragments", OpName: "ComplexNamedFragments",
Query: ComplexNamedFragmentsOperation, Query: ComplexNamedFragments_Operation,
} }
var err error var err error
@@ -55,7 +55,7 @@ type __InputEnumQueryInput struct {
func (v *__InputEnumQueryInput) GetRole() Role { return v.Role } func (v *__InputEnumQueryInput) GetRole() Role { return v.Role }
// The query or mutation executed by InputEnumQuery. // The query or mutation executed by InputEnumQuery.
const InputEnumQueryOperation = ` const InputEnumQuery_Operation = `
query InputEnumQuery ($role: Role!) { query InputEnumQuery ($role: Role!) {
usersWithRole(role: $role) { usersWithRole(role: $role) {
id id
@@ -69,7 +69,7 @@ func InputEnumQuery(
) (*InputEnumQueryResponse, error) { ) (*InputEnumQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InputEnumQuery", OpName: "InputEnumQuery",
Query: InputEnumQueryOperation, Query: InputEnumQuery_Operation,
Variables: &__InputEnumQueryInput{ Variables: &__InputEnumQueryInput{
Role: role, Role: role,
}, },
@@ -178,7 +178,7 @@ type __InputObjectQueryInput struct {
func (v *__InputObjectQueryInput) GetQuery() UserQueryInput { return v.Query } func (v *__InputObjectQueryInput) GetQuery() UserQueryInput { return v.Query }
// The query or mutation executed by InputObjectQuery. // The query or mutation executed by InputObjectQuery.
const InputObjectQueryOperation = ` const InputObjectQuery_Operation = `
query InputObjectQuery ($query: UserQueryInput) { query InputObjectQuery ($query: UserQueryInput) {
user(query: $query) { user(query: $query) {
id id
@@ -192,7 +192,7 @@ func InputObjectQuery(
) (*InputObjectQueryResponse, error) { ) (*InputObjectQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InputObjectQuery", OpName: "InputObjectQuery",
Query: InputObjectQueryOperation, Query: InputObjectQuery_Operation,
Variables: &__InputObjectQueryInput{ Variables: &__InputObjectQueryInput{
Query: query, Query: query,
}, },
@@ -521,7 +521,7 @@ func (v *InterfaceListFieldWithPointerTopicChildrenVideo) GetId() testutil.ID {
func (v *InterfaceListFieldWithPointerTopicChildrenVideo) GetName() string { return v.Name } func (v *InterfaceListFieldWithPointerTopicChildrenVideo) GetName() string { return v.Name }
// The query or mutation executed by InterfaceListField. // The query or mutation executed by InterfaceListField.
const InterfaceListFieldOperation = ` const InterfaceListField_Operation = `
query InterfaceListField { query InterfaceListField {
root { root {
id id
@@ -549,7 +549,7 @@ func InterfaceListField(
) (*InterfaceListFieldResponse, error) { ) (*InterfaceListFieldResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InterfaceListField", OpName: "InterfaceListField",
Query: InterfaceListFieldOperation, Query: InterfaceListField_Operation,
} }
var err error var err error
@@ -507,7 +507,7 @@ func (v *InterfaceListOfListOfListsFieldWithPointerVideo) GetId() *testutil.ID {
func (v *InterfaceListOfListOfListsFieldWithPointerVideo) GetName() *string { return v.Name } func (v *InterfaceListOfListOfListsFieldWithPointerVideo) GetName() *string { return v.Name }
// The query or mutation executed by InterfaceListOfListOfListsField. // The query or mutation executed by InterfaceListOfListOfListsField.
const InterfaceListOfListOfListsFieldOperation = ` const InterfaceListOfListOfListsField_Operation = `
query InterfaceListOfListOfListsField { query InterfaceListOfListOfListsField {
listOfListsOfListsOfContent { listOfListsOfListsOfContent {
__typename __typename
@@ -527,7 +527,7 @@ func InterfaceListOfListOfListsField(
) (*InterfaceListOfListOfListsFieldResponse, error) { ) (*InterfaceListOfListOfListsFieldResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InterfaceListOfListOfListsField", OpName: "InterfaceListOfListOfListsField",
Query: InterfaceListOfListOfListsFieldOperation, Query: InterfaceListOfListOfListsField_Operation,
} }
var err error var err error
@@ -505,7 +505,7 @@ func (v *InterfaceNestingRootTopicChildrenVideo) GetParent() InterfaceNestingRoo
} }
// The query or mutation executed by InterfaceNesting. // The query or mutation executed by InterfaceNesting.
const InterfaceNestingOperation = ` const InterfaceNesting_Operation = `
query InterfaceNesting { query InterfaceNesting {
root { root {
id id
@@ -529,7 +529,7 @@ func InterfaceNesting(
) (*InterfaceNestingResponse, error) { ) (*InterfaceNestingResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InterfaceNesting", OpName: "InterfaceNesting",
Query: InterfaceNestingOperation, Query: InterfaceNesting_Operation,
} }
var err error var err error
@@ -627,7 +627,7 @@ func (v *InterfaceNoFragmentsQueryWithPointerVideo) GetId() *testutil.ID { retur
func (v *InterfaceNoFragmentsQueryWithPointerVideo) GetName() *string { return v.Name } func (v *InterfaceNoFragmentsQueryWithPointerVideo) GetName() *string { return v.Name }
// The query or mutation executed by InterfaceNoFragmentsQuery. // The query or mutation executed by InterfaceNoFragmentsQuery.
const InterfaceNoFragmentsQueryOperation = ` const InterfaceNoFragmentsQuery_Operation = `
query InterfaceNoFragmentsQuery { query InterfaceNoFragmentsQuery {
root { root {
id id
@@ -656,7 +656,7 @@ func InterfaceNoFragmentsQuery(
) (*InterfaceNoFragmentsQueryResponse, error) { ) (*InterfaceNoFragmentsQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "InterfaceNoFragmentsQuery", OpName: "InterfaceNoFragmentsQuery",
Query: InterfaceNoFragmentsQueryOperation, Query: InterfaceNoFragmentsQuery_Operation,
} }
var err error var err error
@@ -42,7 +42,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []string { return v.Names } func (v *__ListInputQueryInput) GetNames() []string { return v.Names }
// The query or mutation executed by ListInputQuery. // The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = ` const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) { query ListInputQuery ($names: [String]) {
user(query: {names:$names}) { user(query: {names:$names}) {
id id
@@ -56,7 +56,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) { ) (*ListInputQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ListInputQuery", OpName: "ListInputQuery",
Query: ListInputQueryOperation, Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{ Variables: &__ListInputQueryInput{
Names: names, Names: names,
}, },
@@ -17,7 +17,7 @@ func (v *ListOfListsOfListsResponse) GetListOfListsOfLists() [][][]string {
} }
// The query or mutation executed by ListOfListsOfLists. // The query or mutation executed by ListOfListsOfLists.
const ListOfListsOfListsOperation = ` const ListOfListsOfLists_Operation = `
query ListOfListsOfLists { query ListOfListsOfLists {
listOfListsOfLists listOfListsOfLists
} }
@@ -28,7 +28,7 @@ func ListOfListsOfLists(
) (*ListOfListsOfListsResponse, error) { ) (*ListOfListsOfListsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ListOfListsOfLists", OpName: "ListOfListsOfLists",
Query: ListOfListsOfListsOperation, Query: ListOfListsOfLists_Operation,
} }
var err error var err error
@@ -326,7 +326,7 @@ func (v *__MultipleDirectivesInput) GetQuery() MyInput { return v.Query }
func (v *__MultipleDirectivesInput) GetQueries() []*UserQueryInput { return v.Queries } func (v *__MultipleDirectivesInput) GetQueries() []*UserQueryInput { return v.Queries }
// The query or mutation executed by MultipleDirectives. // The query or mutation executed by MultipleDirectives.
const MultipleDirectivesOperation = ` const MultipleDirectives_Operation = `
query MultipleDirectives ($query: UserQueryInput, $queries: [UserQueryInput]) { query MultipleDirectives ($query: UserQueryInput, $queries: [UserQueryInput]) {
user(query: $query) { user(query: $query) {
id id
@@ -344,7 +344,7 @@ func MultipleDirectives(
) (*MyMultipleDirectivesResponse, error) { ) (*MyMultipleDirectivesResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "MultipleDirectives", OpName: "MultipleDirectives",
Query: MultipleDirectivesOperation, Query: MultipleDirectives_Operation,
Variables: &__MultipleDirectivesInput{ Variables: &__MultipleDirectivesInput{
Query: query, Query: query,
Queries: queries, Queries: queries,
@@ -220,7 +220,7 @@ func (v *__OmitEmptyQueryInput) GetTz() string { return v.Tz }
func (v *__OmitEmptyQueryInput) GetTzNoOmitEmpty() string { return v.TzNoOmitEmpty } func (v *__OmitEmptyQueryInput) GetTzNoOmitEmpty() string { return v.TzNoOmitEmpty }
// The query or mutation executed by OmitEmptyQuery. // The query or mutation executed by OmitEmptyQuery.
const OmitEmptyQueryOperation = ` const OmitEmptyQuery_Operation = `
query OmitEmptyQuery ($query: UserQueryInput, $queries: [UserQueryInput], $dt: DateTime, $tz: String, $tzNoOmitEmpty: String) { query OmitEmptyQuery ($query: UserQueryInput, $queries: [UserQueryInput], $dt: DateTime, $tz: String, $tzNoOmitEmpty: String) {
user(query: $query) { user(query: $query) {
id id
@@ -243,7 +243,7 @@ func OmitEmptyQuery(
) (*OmitEmptyQueryResponse, error) { ) (*OmitEmptyQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "OmitEmptyQuery", OpName: "OmitEmptyQuery",
Query: OmitEmptyQueryOperation, Query: OmitEmptyQuery_Operation,
Variables: &__OmitEmptyQueryInput{ Variables: &__OmitEmptyQueryInput{
Query: query, Query: query,
Queries: queries, Queries: queries,
@@ -231,7 +231,7 @@ func (v *__PointersQueryInput) GetDt() time.Time { return v.Dt }
func (v *__PointersQueryInput) GetTz() *string { return v.Tz } func (v *__PointersQueryInput) GetTz() *string { return v.Tz }
// The query or mutation executed by PointersQuery. // The query or mutation executed by PointersQuery.
const PointersQueryOperation = ` const PointersQuery_Operation = `
query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) { query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
user(query: $query) { user(query: $query) {
id id
@@ -255,7 +255,7 @@ func PointersQuery(
) (*PointersQueryResponse, error) { ) (*PointersQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "PointersQuery", OpName: "PointersQuery",
Query: PointersQueryOperation, Query: PointersQuery_Operation,
Variables: &__PointersQueryInput{ Variables: &__PointersQueryInput{
Query: query, Query: query,
Dt: dt, Dt: dt,
@@ -228,7 +228,7 @@ func (v *__PointersQueryInput) GetDt() *time.Time { return v.Dt }
func (v *__PointersQueryInput) GetTz() string { return v.Tz } func (v *__PointersQueryInput) GetTz() string { return v.Tz }
// The query or mutation executed by PointersQuery. // The query or mutation executed by PointersQuery.
const PointersQueryOperation = ` const PointersQuery_Operation = `
query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) { query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
user(query: $query) { user(query: $query) {
id id
@@ -252,7 +252,7 @@ func PointersQuery(
) (*PointersQueryResponse, error) { ) (*PointersQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "PointersQuery", OpName: "PointersQuery",
Query: PointersQueryOperation, Query: PointersQuery_Operation,
Variables: &__PointersQueryInput{ Variables: &__PointersQueryInput{
Query: query, Query: query,
Dt: dt, Dt: dt,
@@ -72,7 +72,7 @@ type __GetPokemonSiblingsInput struct {
func (v *__GetPokemonSiblingsInput) GetInput() testutil.Pokemon { return v.Input } func (v *__GetPokemonSiblingsInput) GetInput() testutil.Pokemon { return v.Input }
// The query or mutation executed by GetPokemonSiblings. // The query or mutation executed by GetPokemonSiblings.
const GetPokemonSiblingsOperation = ` const GetPokemonSiblings_Operation = `
query GetPokemonSiblings ($input: PokemonInput!) { query GetPokemonSiblings ($input: PokemonInput!) {
user(query: {hasPokemon:$input}) { user(query: {hasPokemon:$input}) {
id id
@@ -96,7 +96,7 @@ func GetPokemonSiblings(
) (*GetPokemonSiblingsResponse, error) { ) (*GetPokemonSiblingsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "GetPokemonSiblings", OpName: "GetPokemonSiblings",
Query: GetPokemonSiblingsOperation, Query: GetPokemonSiblings_Operation,
Variables: &__GetPokemonSiblingsInput{ Variables: &__GetPokemonSiblingsInput{
Input: input, Input: input,
}, },
@@ -41,7 +41,7 @@ func (v *QueryWithAliasUser) GetID() testutil.ID { return v.ID }
func (v *QueryWithAliasUser) GetOtherID() testutil.ID { return v.OtherID } func (v *QueryWithAliasUser) GetOtherID() testutil.ID { return v.OtherID }
// The query or mutation executed by QueryWithAlias. // The query or mutation executed by QueryWithAlias.
const QueryWithAliasOperation = ` const QueryWithAlias_Operation = `
query QueryWithAlias { query QueryWithAlias {
User: user { User: user {
ID: id ID: id
@@ -55,7 +55,7 @@ func QueryWithAlias(
) (*QueryWithAliasResponse, error) { ) (*QueryWithAliasResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithAlias", OpName: "QueryWithAlias",
Query: QueryWithAliasOperation, Query: QueryWithAlias_Operation,
} }
var err error var err error
@@ -41,7 +41,7 @@ func (v *QueryWithDoubleAliasUser) GetID() testutil.ID { return v.ID }
func (v *QueryWithDoubleAliasUser) GetAlsoID() testutil.ID { return v.AlsoID } func (v *QueryWithDoubleAliasUser) GetAlsoID() testutil.ID { return v.AlsoID }
// The query or mutation executed by QueryWithDoubleAlias. // The query or mutation executed by QueryWithDoubleAlias.
const QueryWithDoubleAliasOperation = ` const QueryWithDoubleAlias_Operation = `
query QueryWithDoubleAlias { query QueryWithDoubleAlias {
user { user {
ID: id ID: id
@@ -55,7 +55,7 @@ func QueryWithDoubleAlias(
) (*QueryWithDoubleAliasResponse, error) { ) (*QueryWithDoubleAliasResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithDoubleAlias", OpName: "QueryWithDoubleAlias",
Query: QueryWithDoubleAliasOperation, Query: QueryWithDoubleAlias_Operation,
} }
var err error var err error
@@ -63,7 +63,7 @@ const (
) )
// The query or mutation executed by QueryWithEnums. // The query or mutation executed by QueryWithEnums.
const QueryWithEnumsOperation = ` const QueryWithEnums_Operation = `
query QueryWithEnums { query QueryWithEnums {
user { user {
roles roles
@@ -79,7 +79,7 @@ func QueryWithEnums(
) (*QueryWithEnumsResponse, error) { ) (*QueryWithEnumsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithEnums", OpName: "QueryWithEnums",
Query: QueryWithEnumsOperation, Query: QueryWithEnums_Operation,
} }
var err error var err error
@@ -42,7 +42,7 @@ func (v *QueryWithSlicesUser) GetEmailsWithNulls() []string { return v.EmailsWit
func (v *QueryWithSlicesUser) GetEmailsWithNullsOrNull() []string { return v.EmailsWithNullsOrNull } func (v *QueryWithSlicesUser) GetEmailsWithNullsOrNull() []string { return v.EmailsWithNullsOrNull }
// The query or mutation executed by QueryWithSlices. // The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = ` const QueryWithSlices_Operation = `
query QueryWithSlices { query QueryWithSlices {
user { user {
emails emails
@@ -58,7 +58,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) { ) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithSlices", OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation, Query: QueryWithSlices_Operation,
} }
var err error var err error
@@ -44,7 +44,7 @@ func (v *QueryWithStructsUserAuthMethodsAuthMethod) GetProvider() string { retur
func (v *QueryWithStructsUserAuthMethodsAuthMethod) GetEmail() string { return v.Email } func (v *QueryWithStructsUserAuthMethodsAuthMethod) GetEmail() string { return v.Email }
// The query or mutation executed by QueryWithStructs. // The query or mutation executed by QueryWithStructs.
const QueryWithStructsOperation = ` const QueryWithStructs_Operation = `
query QueryWithStructs { query QueryWithStructs {
user { user {
authMethods { authMethods {
@@ -60,7 +60,7 @@ func QueryWithStructs(
) (*QueryWithStructsResponse, error) { ) (*QueryWithStructsResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithStructs", OpName: "QueryWithStructs",
Query: QueryWithStructsOperation, Query: QueryWithStructs_Operation,
} }
var err error var err error
@@ -69,7 +69,7 @@ type __RecursionInput struct {
func (v *__RecursionInput) GetInput() RecursiveInput { return v.Input } func (v *__RecursionInput) GetInput() RecursiveInput { return v.Input }
// The query or mutation executed by Recursion. // The query or mutation executed by Recursion.
const RecursionOperation = ` const Recursion_Operation = `
query Recursion ($input: RecursiveInput!) { query Recursion ($input: RecursiveInput!) {
recur(input: $input) { recur(input: $input) {
rec { rec {
@@ -89,7 +89,7 @@ func Recursion(
) (*RecursionResponse, error) { ) (*RecursionResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "Recursion", OpName: "Recursion",
Query: RecursionOperation, Query: Recursion_Operation,
Variables: &__RecursionInput{ Variables: &__RecursionInput{
Input: input, Input: input,
}, },
@@ -240,7 +240,7 @@ func (v *SimpleInlineFragmentResponse) __premarshalJSON() (*__premarshalSimpleIn
} }
// The query or mutation executed by SimpleInlineFragment. // The query or mutation executed by SimpleInlineFragment.
const SimpleInlineFragmentOperation = ` const SimpleInlineFragment_Operation = `
query SimpleInlineFragment { query SimpleInlineFragment {
randomItem { randomItem {
__typename __typename
@@ -261,7 +261,7 @@ func SimpleInlineFragment(
) (*SimpleInlineFragmentResponse, error) { ) (*SimpleInlineFragmentResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleInlineFragment", OpName: "SimpleInlineFragment",
Query: SimpleInlineFragmentOperation, Query: SimpleInlineFragment_Operation,
} }
var err error var err error
@@ -42,7 +42,7 @@ type __SimpleInputQueryInput struct {
func (v *__SimpleInputQueryInput) GetName() string { return v.Name } func (v *__SimpleInputQueryInput) GetName() string { return v.Name }
// The query or mutation executed by SimpleInputQuery. // The query or mutation executed by SimpleInputQuery.
const SimpleInputQueryOperation = ` const SimpleInputQuery_Operation = `
query SimpleInputQuery ($name: String!) { query SimpleInputQuery ($name: String!) {
user(query: {name:$name}) { user(query: {name:$name}) {
id id
@@ -56,7 +56,7 @@ func SimpleInputQuery(
) (*SimpleInputQueryResponse, error) { ) (*SimpleInputQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleInputQuery", OpName: "SimpleInputQuery",
Query: SimpleInputQueryOperation, Query: SimpleInputQuery_Operation,
Variables: &__SimpleInputQueryInput{ Variables: &__SimpleInputQueryInput{
Name: name, Name: name,
}, },
@@ -42,7 +42,7 @@ type __SimpleMutationInput struct {
func (v *__SimpleMutationInput) GetName() string { return v.Name } func (v *__SimpleMutationInput) GetName() string { return v.Name }
// The query or mutation executed by SimpleMutation. // The query or mutation executed by SimpleMutation.
const SimpleMutationOperation = ` const SimpleMutation_Operation = `
mutation SimpleMutation ($name: String!) { mutation SimpleMutation ($name: String!) {
createUser(name: $name) { createUser(name: $name) {
id id
@@ -61,7 +61,7 @@ func SimpleMutation(
) (*SimpleMutationResponse, error) { ) (*SimpleMutationResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleMutation", OpName: "SimpleMutation",
Query: SimpleMutationOperation, Query: SimpleMutation_Operation,
Variables: &__SimpleMutationInput{ Variables: &__SimpleMutationInput{
Name: name, Name: name,
}, },
@@ -547,7 +547,7 @@ type VideoFieldsThumbnail struct {
func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id } func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleNamedFragment. // The query or mutation executed by SimpleNamedFragment.
const SimpleNamedFragmentOperation = ` const SimpleNamedFragment_Operation = `
query SimpleNamedFragment { query SimpleNamedFragment {
randomItem { randomItem {
__typename __typename
@@ -576,7 +576,7 @@ func SimpleNamedFragment(
) (*SimpleNamedFragmentResponse, error) { ) (*SimpleNamedFragmentResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleNamedFragment", OpName: "SimpleNamedFragment",
Query: SimpleNamedFragmentOperation, Query: SimpleNamedFragment_Operation,
} }
var err error var err error
@@ -34,7 +34,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id } func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -47,7 +47,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -425,7 +425,7 @@ type VideoFields struct {
func (v *VideoFields) GetDuration() int { return v.Duration } func (v *VideoFields) GetDuration() int { return v.Duration }
// The query or mutation executed by StructOption. // The query or mutation executed by StructOption.
const StructOptionOperation = ` const StructOption_Operation = `
query StructOption { query StructOption {
root { root {
id id
@@ -460,7 +460,7 @@ func StructOption(
) (*StructOptionResponse, error) { ) (*StructOptionResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "StructOption", OpName: "StructOption",
Query: StructOptionOperation, Query: StructOption_Operation,
} }
var err error var err error
@@ -38,7 +38,7 @@ func (v *TypeNameQueryUser) GetTypename() string { return v.Typename }
func (v *TypeNameQueryUser) GetId() testutil.ID { return v.Id } func (v *TypeNameQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by TypeNameQuery. // The query or mutation executed by TypeNameQuery.
const TypeNameQueryOperation = ` const TypeNameQuery_Operation = `
query TypeNameQuery { query TypeNameQuery {
user { user {
__typename __typename
@@ -52,7 +52,7 @@ func TypeNameQuery(
) (*TypeNameQueryResponse, error) { ) (*TypeNameQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "TypeNameQuery", OpName: "TypeNameQuery",
Query: TypeNameQueryOperation, Query: TypeNameQuery_Operation,
} }
var err error var err error
@@ -265,7 +265,7 @@ func (v *User) GetId() testutil.ID { return v.Id }
func (v *User) GetName() string { return v.Name } func (v *User) GetName() string { return v.Name }
// The query or mutation executed by TypeNames. // The query or mutation executed by TypeNames.
const TypeNamesOperation = ` const TypeNames_Operation = `
query TypeNames { query TypeNames {
user { user {
id id
@@ -288,7 +288,7 @@ func TypeNames(
) (*Resp, error) { ) (*Resp, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "TypeNames", OpName: "TypeNames",
Query: TypeNamesOperation, Query: TypeNames_Operation,
} }
var err error var err error
@@ -175,7 +175,7 @@ func (v *UnionNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalUnionNo
} }
// The query or mutation executed by UnionNoFragmentsQuery. // The query or mutation executed by UnionNoFragmentsQuery.
const UnionNoFragmentsQueryOperation = ` const UnionNoFragmentsQuery_Operation = `
query UnionNoFragmentsQuery { query UnionNoFragmentsQuery {
randomLeaf { randomLeaf {
__typename __typename
@@ -188,7 +188,7 @@ func UnionNoFragmentsQuery(
) (*UnionNoFragmentsQueryResponse, error) { ) (*UnionNoFragmentsQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "UnionNoFragmentsQuery", OpName: "UnionNoFragmentsQuery",
Query: UnionNoFragmentsQueryOperation, Query: UnionNoFragmentsQuery_Operation,
} }
var err error var err error
@@ -63,7 +63,7 @@ func (v *UsesEnumTwiceQueryResponse) GetMe() UsesEnumTwiceQueryMeUser { return v
func (v *UsesEnumTwiceQueryResponse) GetOtherUser() UsesEnumTwiceQueryOtherUser { return v.OtherUser } func (v *UsesEnumTwiceQueryResponse) GetOtherUser() UsesEnumTwiceQueryOtherUser { return v.OtherUser }
// The query or mutation executed by UsesEnumTwiceQuery. // The query or mutation executed by UsesEnumTwiceQuery.
const UsesEnumTwiceQueryOperation = ` const UsesEnumTwiceQuery_Operation = `
query UsesEnumTwiceQuery { query UsesEnumTwiceQuery {
Me: user { Me: user {
roles roles
@@ -79,7 +79,7 @@ func UsesEnumTwiceQuery(
) (*UsesEnumTwiceQueryResponse, error) { ) (*UsesEnumTwiceQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "UsesEnumTwiceQuery", OpName: "UsesEnumTwiceQuery",
Query: UsesEnumTwiceQueryOperation, Query: UsesEnumTwiceQuery_Operation,
} }
var err error var err error
@@ -178,7 +178,7 @@ type unexportedUser struct {
func (v *unexportedUser) GetId() testutil.ID { return v.Id } func (v *unexportedUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by unexported. // The query or mutation executed by unexported.
const unexportedOperation = ` const unexported_Operation = `
query unexported ($query: UserQueryInput) { query unexported ($query: UserQueryInput) {
user(query: $query) { user(query: $query) {
id id
@@ -192,7 +192,7 @@ func unexported(
) (*unexportedResponse, error) { ) (*unexportedResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "unexported", OpName: "unexported",
Query: unexportedOperation, Query: unexported_Operation,
Variables: &__unexportedInput{ Variables: &__unexportedInput{
Query: query, Query: query,
}, },
@@ -36,7 +36,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
var client graphql.Client var client graphql.Client
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -52,7 +52,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
var client graphql.Client var client graphql.Client
@@ -34,7 +34,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -45,7 +45,7 @@ query SimpleQuery {
func SimpleQuery() (*SimpleQueryResponse, error) { func SimpleQuery() (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
var client graphql.Client var client graphql.Client
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -53,7 +53,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -53,7 +53,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, map[string]interface{}, error) { ) (*SimpleQueryResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -33,7 +33,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -46,7 +46,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -78,7 +78,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []*string { return v.Names } func (v *__ListInputQueryInput) GetNames() []*string { return v.Names }
// The query or mutation executed by ListInputQuery. // The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = ` const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) { query ListInputQuery ($names: [String]) {
user(query: {names:$names}) { user(query: {names:$names}) {
id id
@@ -93,7 +93,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) { ) (*ListInputQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ListInputQuery", OpName: "ListInputQuery",
Query: ListInputQueryOperation, Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{ Variables: &__ListInputQueryInput{
Names: names, Names: names,
}, },
@@ -113,7 +113,7 @@ func ListInputQuery(
} }
// The query or mutation executed by QueryWithSlices. // The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = ` const QueryWithSlices_Operation = `
query QueryWithSlices { query QueryWithSlices {
user { user {
emails emails
@@ -130,7 +130,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) { ) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithSlices", OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation, Query: QueryWithSlices_Operation,
} }
var err error var err error
@@ -78,7 +78,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []string { return v.Names } func (v *__ListInputQueryInput) GetNames() []string { return v.Names }
// The query or mutation executed by ListInputQuery. // The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = ` const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) { query ListInputQuery ($names: [String]) {
user(query: {names:$names}) { user(query: {names:$names}) {
id id
@@ -93,7 +93,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) { ) (*ListInputQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "ListInputQuery", OpName: "ListInputQuery",
Query: ListInputQueryOperation, Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{ Variables: &__ListInputQueryInput{
Names: names, Names: names,
}, },
@@ -113,7 +113,7 @@ func ListInputQuery(
} }
// The query or mutation executed by QueryWithSlices. // The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = ` const QueryWithSlices_Operation = `
query QueryWithSlices { query QueryWithSlices {
user { user {
emails emails
@@ -130,7 +130,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) { ) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "QueryWithSlices", OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation, Query: QueryWithSlices_Operation,
} }
var err error var err error
@@ -36,7 +36,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id } func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -50,7 +50,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id } func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery. // The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = ` const SimpleQuery_Operation = `
query SimpleQuery { query SimpleQuery {
user { user {
id id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) { ) (*SimpleQueryResponse, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "SimpleQuery", OpName: "SimpleQuery",
Query: SimpleQueryOperation, Query: SimpleQuery_Operation,
} }
var err error var err error
+30 -30
View File
@@ -3079,7 +3079,7 @@ type simpleQueryResponse struct {
func (v *simpleQueryResponse) GetMe() simpleQueryMeUser { return v.Me } func (v *simpleQueryResponse) GetMe() simpleQueryMeUser { return v.Me }
// The query or mutation executed by createUser. // The query or mutation executed by createUser.
const createUserOperation = ` const createUser_Operation = `
mutation createUser ($user: NewUser!) { mutation createUser ($user: NewUser!) {
createUser(input: $user) { createUser(input: $user) {
id id
@@ -3095,7 +3095,7 @@ func createUser(
) (*createUserResponse, map[string]interface{}, error) { ) (*createUserResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "createUser", OpName: "createUser",
Query: createUserOperation, Query: createUser_Operation,
Variables: &__createUserInput{ Variables: &__createUserInput{
User: user, User: user,
}, },
@@ -3115,7 +3115,7 @@ func createUser(
} }
// The query or mutation executed by failingQuery. // The query or mutation executed by failingQuery.
const failingQueryOperation = ` const failingQuery_Operation = `
query failingQuery { query failingQuery {
fail fail
me { me {
@@ -3130,7 +3130,7 @@ func failingQuery(
) (*failingQueryResponse, map[string]interface{}, error) { ) (*failingQueryResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "failingQuery", OpName: "failingQuery",
Query: failingQueryOperation, Query: failingQuery_Operation,
} }
var err error var err error
@@ -3147,7 +3147,7 @@ func failingQuery(
} }
// The query or mutation executed by queryWithCustomMarshal. // The query or mutation executed by queryWithCustomMarshal.
const queryWithCustomMarshalOperation = ` const queryWithCustomMarshal_Operation = `
query queryWithCustomMarshal ($date: Date!) { query queryWithCustomMarshal ($date: Date!) {
usersBornOn(date: $date) { usersBornOn(date: $date) {
id id
@@ -3164,7 +3164,7 @@ func queryWithCustomMarshal(
) (*queryWithCustomMarshalResponse, map[string]interface{}, error) { ) (*queryWithCustomMarshalResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithCustomMarshal", OpName: "queryWithCustomMarshal",
Query: queryWithCustomMarshalOperation, Query: queryWithCustomMarshal_Operation,
Variables: &__queryWithCustomMarshalInput{ Variables: &__queryWithCustomMarshalInput{
Date: date, Date: date,
}, },
@@ -3184,7 +3184,7 @@ func queryWithCustomMarshal(
} }
// The query or mutation executed by queryWithCustomMarshalOptional. // The query or mutation executed by queryWithCustomMarshalOptional.
const queryWithCustomMarshalOptionalOperation = ` const queryWithCustomMarshalOptional_Operation = `
query queryWithCustomMarshalOptional ($date: Date, $id: ID) { query queryWithCustomMarshalOptional ($date: Date, $id: ID) {
userSearch(birthdate: $date, id: $id) { userSearch(birthdate: $date, id: $id) {
id id
@@ -3202,7 +3202,7 @@ func queryWithCustomMarshalOptional(
) (*queryWithCustomMarshalOptionalResponse, map[string]interface{}, error) { ) (*queryWithCustomMarshalOptionalResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithCustomMarshalOptional", OpName: "queryWithCustomMarshalOptional",
Query: queryWithCustomMarshalOptionalOperation, Query: queryWithCustomMarshalOptional_Operation,
Variables: &__queryWithCustomMarshalOptionalInput{ Variables: &__queryWithCustomMarshalOptionalInput{
Date: date, Date: date,
Id: id, Id: id,
@@ -3223,7 +3223,7 @@ func queryWithCustomMarshalOptional(
} }
// The query or mutation executed by queryWithCustomMarshalSlice. // The query or mutation executed by queryWithCustomMarshalSlice.
const queryWithCustomMarshalSliceOperation = ` const queryWithCustomMarshalSlice_Operation = `
query queryWithCustomMarshalSlice ($dates: [Date!]!) { query queryWithCustomMarshalSlice ($dates: [Date!]!) {
usersBornOnDates(dates: $dates) { usersBornOnDates(dates: $dates) {
id id
@@ -3240,7 +3240,7 @@ func queryWithCustomMarshalSlice(
) (*queryWithCustomMarshalSliceResponse, map[string]interface{}, error) { ) (*queryWithCustomMarshalSliceResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithCustomMarshalSlice", OpName: "queryWithCustomMarshalSlice",
Query: queryWithCustomMarshalSliceOperation, Query: queryWithCustomMarshalSlice_Operation,
Variables: &__queryWithCustomMarshalSliceInput{ Variables: &__queryWithCustomMarshalSliceInput{
Dates: dates, Dates: dates,
}, },
@@ -3260,7 +3260,7 @@ func queryWithCustomMarshalSlice(
} }
// The query or mutation executed by queryWithFlatten. // The query or mutation executed by queryWithFlatten.
const queryWithFlattenOperation = ` const queryWithFlatten_Operation = `
query queryWithFlatten ($ids: [ID!]!) { query queryWithFlatten ($ids: [ID!]!) {
... QueryFragment ... QueryFragment
} }
@@ -3311,7 +3311,7 @@ func queryWithFlatten(
) (*QueryFragment, map[string]interface{}, error) { ) (*QueryFragment, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithFlatten", OpName: "queryWithFlatten",
Query: queryWithFlattenOperation, Query: queryWithFlatten_Operation,
Variables: &__queryWithFlattenInput{ Variables: &__queryWithFlattenInput{
Ids: ids, Ids: ids,
}, },
@@ -3331,7 +3331,7 @@ func queryWithFlatten(
} }
// The query or mutation executed by queryWithFragments. // The query or mutation executed by queryWithFragments.
const queryWithFragmentsOperation = ` const queryWithFragments_Operation = `
query queryWithFragments ($ids: [ID!]!) { query queryWithFragments ($ids: [ID!]!) {
beings(ids: $ids) { beings(ids: $ids) {
__typename __typename
@@ -3376,7 +3376,7 @@ func queryWithFragments(
) (*queryWithFragmentsResponse, map[string]interface{}, error) { ) (*queryWithFragmentsResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithFragments", OpName: "queryWithFragments",
Query: queryWithFragmentsOperation, Query: queryWithFragments_Operation,
Variables: &__queryWithFragmentsInput{ Variables: &__queryWithFragmentsInput{
Ids: ids, Ids: ids,
}, },
@@ -3396,7 +3396,7 @@ func queryWithFragments(
} }
// The query or mutation executed by queryWithInterfaceListField. // The query or mutation executed by queryWithInterfaceListField.
const queryWithInterfaceListFieldOperation = ` const queryWithInterfaceListField_Operation = `
query queryWithInterfaceListField ($ids: [ID!]!) { query queryWithInterfaceListField ($ids: [ID!]!) {
beings(ids: $ids) { beings(ids: $ids) {
__typename __typename
@@ -3413,7 +3413,7 @@ func queryWithInterfaceListField(
) (*queryWithInterfaceListFieldResponse, map[string]interface{}, error) { ) (*queryWithInterfaceListFieldResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithInterfaceListField", OpName: "queryWithInterfaceListField",
Query: queryWithInterfaceListFieldOperation, Query: queryWithInterfaceListField_Operation,
Variables: &__queryWithInterfaceListFieldInput{ Variables: &__queryWithInterfaceListFieldInput{
Ids: ids, Ids: ids,
}, },
@@ -3433,7 +3433,7 @@ func queryWithInterfaceListField(
} }
// The query or mutation executed by queryWithInterfaceListPointerField. // The query or mutation executed by queryWithInterfaceListPointerField.
const queryWithInterfaceListPointerFieldOperation = ` const queryWithInterfaceListPointerField_Operation = `
query queryWithInterfaceListPointerField ($ids: [ID!]!) { query queryWithInterfaceListPointerField ($ids: [ID!]!) {
beings(ids: $ids) { beings(ids: $ids) {
__typename __typename
@@ -3450,7 +3450,7 @@ func queryWithInterfaceListPointerField(
) (*queryWithInterfaceListPointerFieldResponse, map[string]interface{}, error) { ) (*queryWithInterfaceListPointerFieldResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithInterfaceListPointerField", OpName: "queryWithInterfaceListPointerField",
Query: queryWithInterfaceListPointerFieldOperation, Query: queryWithInterfaceListPointerField_Operation,
Variables: &__queryWithInterfaceListPointerFieldInput{ Variables: &__queryWithInterfaceListPointerFieldInput{
Ids: ids, Ids: ids,
}, },
@@ -3470,7 +3470,7 @@ func queryWithInterfaceListPointerField(
} }
// The query or mutation executed by queryWithInterfaceNoFragments. // The query or mutation executed by queryWithInterfaceNoFragments.
const queryWithInterfaceNoFragmentsOperation = ` const queryWithInterfaceNoFragments_Operation = `
query queryWithInterfaceNoFragments ($id: ID!) { query queryWithInterfaceNoFragments ($id: ID!) {
being(id: $id) { being(id: $id) {
__typename __typename
@@ -3491,7 +3491,7 @@ func queryWithInterfaceNoFragments(
) (*queryWithInterfaceNoFragmentsResponse, map[string]interface{}, error) { ) (*queryWithInterfaceNoFragmentsResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithInterfaceNoFragments", OpName: "queryWithInterfaceNoFragments",
Query: queryWithInterfaceNoFragmentsOperation, Query: queryWithInterfaceNoFragments_Operation,
Variables: &__queryWithInterfaceNoFragmentsInput{ Variables: &__queryWithInterfaceNoFragmentsInput{
Id: id, Id: id,
}, },
@@ -3511,7 +3511,7 @@ func queryWithInterfaceNoFragments(
} }
// The query or mutation executed by queryWithNamedFragments. // The query or mutation executed by queryWithNamedFragments.
const queryWithNamedFragmentsOperation = ` const queryWithNamedFragments_Operation = `
query queryWithNamedFragments ($ids: [ID!]!) { query queryWithNamedFragments ($ids: [ID!]!) {
beings(ids: $ids) { beings(ids: $ids) {
__typename __typename
@@ -3556,7 +3556,7 @@ func queryWithNamedFragments(
) (*queryWithNamedFragmentsResponse, map[string]interface{}, error) { ) (*queryWithNamedFragmentsResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithNamedFragments", OpName: "queryWithNamedFragments",
Query: queryWithNamedFragmentsOperation, Query: queryWithNamedFragments_Operation,
Variables: &__queryWithNamedFragmentsInput{ Variables: &__queryWithNamedFragmentsInput{
Ids: ids, Ids: ids,
}, },
@@ -3576,7 +3576,7 @@ func queryWithNamedFragments(
} }
// The query or mutation executed by queryWithOmitempty. // The query or mutation executed by queryWithOmitempty.
const queryWithOmitemptyOperation = ` const queryWithOmitempty_Operation = `
query queryWithOmitempty ($id: ID) { query queryWithOmitempty ($id: ID) {
user(id: $id) { user(id: $id) {
id id
@@ -3593,7 +3593,7 @@ func queryWithOmitempty(
) (*queryWithOmitemptyResponse, map[string]interface{}, error) { ) (*queryWithOmitemptyResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithOmitempty", OpName: "queryWithOmitempty",
Query: queryWithOmitemptyOperation, Query: queryWithOmitempty_Operation,
Variables: &__queryWithOmitemptyInput{ Variables: &__queryWithOmitemptyInput{
Id: id, Id: id,
}, },
@@ -3613,7 +3613,7 @@ func queryWithOmitempty(
} }
// The query or mutation executed by queryWithVariables. // The query or mutation executed by queryWithVariables.
const queryWithVariablesOperation = ` const queryWithVariables_Operation = `
query queryWithVariables ($id: ID!) { query queryWithVariables ($id: ID!) {
user(id: $id) { user(id: $id) {
id id
@@ -3630,7 +3630,7 @@ func queryWithVariables(
) (*queryWithVariablesResponse, map[string]interface{}, error) { ) (*queryWithVariablesResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "queryWithVariables", OpName: "queryWithVariables",
Query: queryWithVariablesOperation, Query: queryWithVariables_Operation,
Variables: &__queryWithVariablesInput{ Variables: &__queryWithVariablesInput{
Id: id, Id: id,
}, },
@@ -3650,7 +3650,7 @@ func queryWithVariables(
} }
// The query or mutation executed by simpleQuery. // The query or mutation executed by simpleQuery.
const simpleQueryOperation = ` const simpleQuery_Operation = `
query simpleQuery { query simpleQuery {
me { me {
id id
@@ -3666,7 +3666,7 @@ func simpleQuery(
) (*simpleQueryResponse, map[string]interface{}, error) { ) (*simpleQueryResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "simpleQuery", OpName: "simpleQuery",
Query: simpleQueryOperation, Query: simpleQuery_Operation,
} }
var err error var err error
@@ -3683,7 +3683,7 @@ func simpleQuery(
} }
// The query or mutation executed by simpleQueryExt. // The query or mutation executed by simpleQueryExt.
const simpleQueryExtOperation = ` const simpleQueryExt_Operation = `
query simpleQueryExt { query simpleQueryExt {
me { me {
id id
@@ -3699,7 +3699,7 @@ func simpleQueryExt(
) (*simpleQueryExtResponse, map[string]interface{}, error) { ) (*simpleQueryExtResponse, map[string]interface{}, error) {
req := &graphql.Request{ req := &graphql.Request{
OpName: "simpleQueryExt", OpName: "simpleQueryExt",
Query: simpleQueryExtOperation, Query: simpleQueryExt_Operation,
} }
var err error var err error