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
@@ -1341,7 +1341,7 @@ func (v *ComplexInlineFragmentsRootTopic) GetSchoolGrade() string { return v.Sch
func (v *ComplexInlineFragmentsRootTopic) GetName() string { return v.Name }
// The query or mutation executed by ComplexInlineFragments.
const ComplexInlineFragmentsOperation = `
const ComplexInlineFragments_Operation = `
query ComplexInlineFragments {
root {
id
@@ -1439,7 +1439,7 @@ func ComplexInlineFragments(
) (*ComplexInlineFragmentsResponse, error) {
req := &graphql.Request{
OpName: "ComplexInlineFragments",
Query: ComplexInlineFragmentsOperation,
Query: ComplexInlineFragments_Operation,
}
var err error
@@ -1740,7 +1740,7 @@ type VideoFieldsThumbnail struct {
func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id }
// The query or mutation executed by ComplexNamedFragments.
const ComplexNamedFragmentsOperation = `
const ComplexNamedFragments_Operation = `
query ComplexNamedFragments {
... on Query {
... QueryFragment
@@ -1805,7 +1805,7 @@ func ComplexNamedFragments(
) (*ComplexNamedFragmentsResponse, error) {
req := &graphql.Request{
OpName: "ComplexNamedFragments",
Query: ComplexNamedFragmentsOperation,
Query: ComplexNamedFragments_Operation,
}
var err error
@@ -2347,7 +2347,7 @@ type TopicFieldsRelatedTopic struct {
func (v *TopicFieldsRelatedTopic) GetId() testutil.ID { return v.Id }
// The query or mutation executed by CovariantInterfaceImplementation.
const CovariantInterfaceImplementationOperation = `
const CovariantInterfaceImplementation_Operation = `
query CovariantInterfaceImplementation {
randomItem {
__typename
@@ -2397,7 +2397,7 @@ func CovariantInterfaceImplementation(
) (*CovariantInterfaceImplementationResponse, error) {
req := &graphql.Request{
OpName: "CovariantInterfaceImplementation",
Query: CovariantInterfaceImplementationOperation,
Query: CovariantInterfaceImplementation_Operation,
}
var err error
@@ -175,7 +175,7 @@ func (v *__CustomMarshalInput) __premarshalJSON() (*__premarshal__CustomMarshalI
}
// The query or mutation executed by CustomMarshal.
const CustomMarshalOperation = `
const CustomMarshal_Operation = `
query CustomMarshal ($date: Date!) {
usersBornOn(date: $date) {
id
@@ -190,7 +190,7 @@ func CustomMarshal(
) (*CustomMarshalResponse, error) {
req := &graphql.Request{
OpName: "CustomMarshal",
Query: CustomMarshalOperation,
Query: CustomMarshal_Operation,
Variables: &__CustomMarshalInput{
Date: date,
},
@@ -204,7 +204,7 @@ func (v *__CustomMarshalSliceInput) __premarshalJSON() (*__premarshal__CustomMar
}
// The query or mutation executed by CustomMarshalSlice.
const CustomMarshalSliceOperation = `
const CustomMarshalSlice_Operation = `
query CustomMarshalSlice ($datesss: [[[Date!]!]!]!, $datesssp: [[[Date!]!]!]!) {
acceptsListOfListOfListsOfDates(datesss: $datesss)
withPointer: acceptsListOfListOfListsOfDates(datesss: $datesssp)
@@ -218,7 +218,7 @@ func CustomMarshalSlice(
) (*CustomMarshalSliceResponse, error) {
req := &graphql.Request{
OpName: "CustomMarshalSlice",
Query: CustomMarshalSliceOperation,
Query: CustomMarshalSlice_Operation,
Variables: &__CustomMarshalSliceInput{
Datesss: datesss,
Datesssp: datesssp,
@@ -29,7 +29,7 @@ type convertTimezoneResponse struct {
func (v *convertTimezoneResponse) GetConvert() time.Time { return v.Convert }
// The query or mutation executed by convertTimezone.
const convertTimezoneOperation = `
const convertTimezone_Operation = `
query convertTimezone ($dt: DateTime!, $tz: String) {
convert(dt: $dt, tz: $tz)
}
@@ -42,7 +42,7 @@ func convertTimezone(
) (*convertTimezoneResponse, error) {
req := &graphql.Request{
OpName: "convertTimezone",
Query: convertTimezoneOperation,
Query: convertTimezone_Operation,
Variables: &__convertTimezoneInput{
Dt: dt,
Tz: tz,
@@ -21,7 +21,7 @@ func (v *EmptyInterfaceResponse) GetGetComplexJunk() []map[string]*[]*map[string
}
// The query or mutation executed by EmptyInterface.
const EmptyInterfaceOperation = `
const EmptyInterface_Operation = `
query EmptyInterface {
getJunk
getComplexJunk
@@ -33,7 +33,7 @@ func EmptyInterface(
) (*EmptyInterfaceResponse, error) {
req := &graphql.Request{
OpName: "EmptyInterface",
Query: EmptyInterfaceOperation,
Query: EmptyInterface_Operation,
}
var err error
@@ -267,7 +267,7 @@ type VideoFieldsParentTopic struct {
func (v *VideoFieldsParentTopic) GetVideoChildren() []ChildVideoFields { return v.VideoChildren }
// The query or mutation executed by ComplexNamedFragments.
const ComplexNamedFragmentsOperation = `
const ComplexNamedFragments_Operation = `
query ComplexNamedFragments {
... QueryFragment
}
@@ -309,7 +309,7 @@ func ComplexNamedFragments(
) (*InnerQueryFragment, error) {
req := &graphql.Request{
OpName: "ComplexNamedFragments",
Query: ComplexNamedFragmentsOperation,
Query: ComplexNamedFragments_Operation,
}
var err error
@@ -55,7 +55,7 @@ type __InputEnumQueryInput struct {
func (v *__InputEnumQueryInput) GetRole() Role { return v.Role }
// The query or mutation executed by InputEnumQuery.
const InputEnumQueryOperation = `
const InputEnumQuery_Operation = `
query InputEnumQuery ($role: Role!) {
usersWithRole(role: $role) {
id
@@ -69,7 +69,7 @@ func InputEnumQuery(
) (*InputEnumQueryResponse, error) {
req := &graphql.Request{
OpName: "InputEnumQuery",
Query: InputEnumQueryOperation,
Query: InputEnumQuery_Operation,
Variables: &__InputEnumQueryInput{
Role: role,
},
@@ -178,7 +178,7 @@ type __InputObjectQueryInput struct {
func (v *__InputObjectQueryInput) GetQuery() UserQueryInput { return v.Query }
// The query or mutation executed by InputObjectQuery.
const InputObjectQueryOperation = `
const InputObjectQuery_Operation = `
query InputObjectQuery ($query: UserQueryInput) {
user(query: $query) {
id
@@ -192,7 +192,7 @@ func InputObjectQuery(
) (*InputObjectQueryResponse, error) {
req := &graphql.Request{
OpName: "InputObjectQuery",
Query: InputObjectQueryOperation,
Query: InputObjectQuery_Operation,
Variables: &__InputObjectQueryInput{
Query: query,
},
@@ -521,7 +521,7 @@ func (v *InterfaceListFieldWithPointerTopicChildrenVideo) GetId() testutil.ID {
func (v *InterfaceListFieldWithPointerTopicChildrenVideo) GetName() string { return v.Name }
// The query or mutation executed by InterfaceListField.
const InterfaceListFieldOperation = `
const InterfaceListField_Operation = `
query InterfaceListField {
root {
id
@@ -549,7 +549,7 @@ func InterfaceListField(
) (*InterfaceListFieldResponse, error) {
req := &graphql.Request{
OpName: "InterfaceListField",
Query: InterfaceListFieldOperation,
Query: InterfaceListField_Operation,
}
var err error
@@ -507,7 +507,7 @@ func (v *InterfaceListOfListOfListsFieldWithPointerVideo) GetId() *testutil.ID {
func (v *InterfaceListOfListOfListsFieldWithPointerVideo) GetName() *string { return v.Name }
// The query or mutation executed by InterfaceListOfListOfListsField.
const InterfaceListOfListOfListsFieldOperation = `
const InterfaceListOfListOfListsField_Operation = `
query InterfaceListOfListOfListsField {
listOfListsOfListsOfContent {
__typename
@@ -527,7 +527,7 @@ func InterfaceListOfListOfListsField(
) (*InterfaceListOfListOfListsFieldResponse, error) {
req := &graphql.Request{
OpName: "InterfaceListOfListOfListsField",
Query: InterfaceListOfListOfListsFieldOperation,
Query: InterfaceListOfListOfListsField_Operation,
}
var err error
@@ -505,7 +505,7 @@ func (v *InterfaceNestingRootTopicChildrenVideo) GetParent() InterfaceNestingRoo
}
// The query or mutation executed by InterfaceNesting.
const InterfaceNestingOperation = `
const InterfaceNesting_Operation = `
query InterfaceNesting {
root {
id
@@ -529,7 +529,7 @@ func InterfaceNesting(
) (*InterfaceNestingResponse, error) {
req := &graphql.Request{
OpName: "InterfaceNesting",
Query: InterfaceNestingOperation,
Query: InterfaceNesting_Operation,
}
var err error
@@ -627,7 +627,7 @@ func (v *InterfaceNoFragmentsQueryWithPointerVideo) GetId() *testutil.ID { retur
func (v *InterfaceNoFragmentsQueryWithPointerVideo) GetName() *string { return v.Name }
// The query or mutation executed by InterfaceNoFragmentsQuery.
const InterfaceNoFragmentsQueryOperation = `
const InterfaceNoFragmentsQuery_Operation = `
query InterfaceNoFragmentsQuery {
root {
id
@@ -656,7 +656,7 @@ func InterfaceNoFragmentsQuery(
) (*InterfaceNoFragmentsQueryResponse, error) {
req := &graphql.Request{
OpName: "InterfaceNoFragmentsQuery",
Query: InterfaceNoFragmentsQueryOperation,
Query: InterfaceNoFragmentsQuery_Operation,
}
var err error
@@ -42,7 +42,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []string { return v.Names }
// The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = `
const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) {
user(query: {names:$names}) {
id
@@ -56,7 +56,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) {
req := &graphql.Request{
OpName: "ListInputQuery",
Query: ListInputQueryOperation,
Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{
Names: names,
},
@@ -17,7 +17,7 @@ func (v *ListOfListsOfListsResponse) GetListOfListsOfLists() [][][]string {
}
// The query or mutation executed by ListOfListsOfLists.
const ListOfListsOfListsOperation = `
const ListOfListsOfLists_Operation = `
query ListOfListsOfLists {
listOfListsOfLists
}
@@ -28,7 +28,7 @@ func ListOfListsOfLists(
) (*ListOfListsOfListsResponse, error) {
req := &graphql.Request{
OpName: "ListOfListsOfLists",
Query: ListOfListsOfListsOperation,
Query: ListOfListsOfLists_Operation,
}
var err error
@@ -326,7 +326,7 @@ func (v *__MultipleDirectivesInput) GetQuery() MyInput { return v.Query }
func (v *__MultipleDirectivesInput) GetQueries() []*UserQueryInput { return v.Queries }
// The query or mutation executed by MultipleDirectives.
const MultipleDirectivesOperation = `
const MultipleDirectives_Operation = `
query MultipleDirectives ($query: UserQueryInput, $queries: [UserQueryInput]) {
user(query: $query) {
id
@@ -344,7 +344,7 @@ func MultipleDirectives(
) (*MyMultipleDirectivesResponse, error) {
req := &graphql.Request{
OpName: "MultipleDirectives",
Query: MultipleDirectivesOperation,
Query: MultipleDirectives_Operation,
Variables: &__MultipleDirectivesInput{
Query: query,
Queries: queries,
@@ -220,7 +220,7 @@ func (v *__OmitEmptyQueryInput) GetTz() string { return v.Tz }
func (v *__OmitEmptyQueryInput) GetTzNoOmitEmpty() string { return v.TzNoOmitEmpty }
// The query or mutation executed by OmitEmptyQuery.
const OmitEmptyQueryOperation = `
const OmitEmptyQuery_Operation = `
query OmitEmptyQuery ($query: UserQueryInput, $queries: [UserQueryInput], $dt: DateTime, $tz: String, $tzNoOmitEmpty: String) {
user(query: $query) {
id
@@ -243,7 +243,7 @@ func OmitEmptyQuery(
) (*OmitEmptyQueryResponse, error) {
req := &graphql.Request{
OpName: "OmitEmptyQuery",
Query: OmitEmptyQueryOperation,
Query: OmitEmptyQuery_Operation,
Variables: &__OmitEmptyQueryInput{
Query: query,
Queries: queries,
@@ -231,7 +231,7 @@ func (v *__PointersQueryInput) GetDt() time.Time { return v.Dt }
func (v *__PointersQueryInput) GetTz() *string { return v.Tz }
// The query or mutation executed by PointersQuery.
const PointersQueryOperation = `
const PointersQuery_Operation = `
query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
user(query: $query) {
id
@@ -255,7 +255,7 @@ func PointersQuery(
) (*PointersQueryResponse, error) {
req := &graphql.Request{
OpName: "PointersQuery",
Query: PointersQueryOperation,
Query: PointersQuery_Operation,
Variables: &__PointersQueryInput{
Query: query,
Dt: dt,
@@ -228,7 +228,7 @@ func (v *__PointersQueryInput) GetDt() *time.Time { return v.Dt }
func (v *__PointersQueryInput) GetTz() string { return v.Tz }
// The query or mutation executed by PointersQuery.
const PointersQueryOperation = `
const PointersQuery_Operation = `
query PointersQuery ($query: UserQueryInput, $dt: DateTime, $tz: String) {
user(query: $query) {
id
@@ -252,7 +252,7 @@ func PointersQuery(
) (*PointersQueryResponse, error) {
req := &graphql.Request{
OpName: "PointersQuery",
Query: PointersQueryOperation,
Query: PointersQuery_Operation,
Variables: &__PointersQueryInput{
Query: query,
Dt: dt,
@@ -72,7 +72,7 @@ type __GetPokemonSiblingsInput struct {
func (v *__GetPokemonSiblingsInput) GetInput() testutil.Pokemon { return v.Input }
// The query or mutation executed by GetPokemonSiblings.
const GetPokemonSiblingsOperation = `
const GetPokemonSiblings_Operation = `
query GetPokemonSiblings ($input: PokemonInput!) {
user(query: {hasPokemon:$input}) {
id
@@ -96,7 +96,7 @@ func GetPokemonSiblings(
) (*GetPokemonSiblingsResponse, error) {
req := &graphql.Request{
OpName: "GetPokemonSiblings",
Query: GetPokemonSiblingsOperation,
Query: GetPokemonSiblings_Operation,
Variables: &__GetPokemonSiblingsInput{
Input: input,
},
@@ -41,7 +41,7 @@ func (v *QueryWithAliasUser) GetID() testutil.ID { return v.ID }
func (v *QueryWithAliasUser) GetOtherID() testutil.ID { return v.OtherID }
// The query or mutation executed by QueryWithAlias.
const QueryWithAliasOperation = `
const QueryWithAlias_Operation = `
query QueryWithAlias {
User: user {
ID: id
@@ -55,7 +55,7 @@ func QueryWithAlias(
) (*QueryWithAliasResponse, error) {
req := &graphql.Request{
OpName: "QueryWithAlias",
Query: QueryWithAliasOperation,
Query: QueryWithAlias_Operation,
}
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 }
// The query or mutation executed by QueryWithDoubleAlias.
const QueryWithDoubleAliasOperation = `
const QueryWithDoubleAlias_Operation = `
query QueryWithDoubleAlias {
user {
ID: id
@@ -55,7 +55,7 @@ func QueryWithDoubleAlias(
) (*QueryWithDoubleAliasResponse, error) {
req := &graphql.Request{
OpName: "QueryWithDoubleAlias",
Query: QueryWithDoubleAliasOperation,
Query: QueryWithDoubleAlias_Operation,
}
var err error
@@ -63,7 +63,7 @@ const (
)
// The query or mutation executed by QueryWithEnums.
const QueryWithEnumsOperation = `
const QueryWithEnums_Operation = `
query QueryWithEnums {
user {
roles
@@ -79,7 +79,7 @@ func QueryWithEnums(
) (*QueryWithEnumsResponse, error) {
req := &graphql.Request{
OpName: "QueryWithEnums",
Query: QueryWithEnumsOperation,
Query: QueryWithEnums_Operation,
}
var err error
@@ -42,7 +42,7 @@ func (v *QueryWithSlicesUser) GetEmailsWithNulls() []string { return v.EmailsWit
func (v *QueryWithSlicesUser) GetEmailsWithNullsOrNull() []string { return v.EmailsWithNullsOrNull }
// The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = `
const QueryWithSlices_Operation = `
query QueryWithSlices {
user {
emails
@@ -58,7 +58,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{
OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation,
Query: QueryWithSlices_Operation,
}
var err error
@@ -44,7 +44,7 @@ func (v *QueryWithStructsUserAuthMethodsAuthMethod) GetProvider() string { retur
func (v *QueryWithStructsUserAuthMethodsAuthMethod) GetEmail() string { return v.Email }
// The query or mutation executed by QueryWithStructs.
const QueryWithStructsOperation = `
const QueryWithStructs_Operation = `
query QueryWithStructs {
user {
authMethods {
@@ -60,7 +60,7 @@ func QueryWithStructs(
) (*QueryWithStructsResponse, error) {
req := &graphql.Request{
OpName: "QueryWithStructs",
Query: QueryWithStructsOperation,
Query: QueryWithStructs_Operation,
}
var err error
@@ -69,7 +69,7 @@ type __RecursionInput struct {
func (v *__RecursionInput) GetInput() RecursiveInput { return v.Input }
// The query or mutation executed by Recursion.
const RecursionOperation = `
const Recursion_Operation = `
query Recursion ($input: RecursiveInput!) {
recur(input: $input) {
rec {
@@ -89,7 +89,7 @@ func Recursion(
) (*RecursionResponse, error) {
req := &graphql.Request{
OpName: "Recursion",
Query: RecursionOperation,
Query: Recursion_Operation,
Variables: &__RecursionInput{
Input: input,
},
@@ -240,7 +240,7 @@ func (v *SimpleInlineFragmentResponse) __premarshalJSON() (*__premarshalSimpleIn
}
// The query or mutation executed by SimpleInlineFragment.
const SimpleInlineFragmentOperation = `
const SimpleInlineFragment_Operation = `
query SimpleInlineFragment {
randomItem {
__typename
@@ -261,7 +261,7 @@ func SimpleInlineFragment(
) (*SimpleInlineFragmentResponse, error) {
req := &graphql.Request{
OpName: "SimpleInlineFragment",
Query: SimpleInlineFragmentOperation,
Query: SimpleInlineFragment_Operation,
}
var err error
@@ -42,7 +42,7 @@ type __SimpleInputQueryInput struct {
func (v *__SimpleInputQueryInput) GetName() string { return v.Name }
// The query or mutation executed by SimpleInputQuery.
const SimpleInputQueryOperation = `
const SimpleInputQuery_Operation = `
query SimpleInputQuery ($name: String!) {
user(query: {name:$name}) {
id
@@ -56,7 +56,7 @@ func SimpleInputQuery(
) (*SimpleInputQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleInputQuery",
Query: SimpleInputQueryOperation,
Query: SimpleInputQuery_Operation,
Variables: &__SimpleInputQueryInput{
Name: name,
},
@@ -42,7 +42,7 @@ type __SimpleMutationInput struct {
func (v *__SimpleMutationInput) GetName() string { return v.Name }
// The query or mutation executed by SimpleMutation.
const SimpleMutationOperation = `
const SimpleMutation_Operation = `
mutation SimpleMutation ($name: String!) {
createUser(name: $name) {
id
@@ -61,7 +61,7 @@ func SimpleMutation(
) (*SimpleMutationResponse, error) {
req := &graphql.Request{
OpName: "SimpleMutation",
Query: SimpleMutationOperation,
Query: SimpleMutation_Operation,
Variables: &__SimpleMutationInput{
Name: name,
},
@@ -547,7 +547,7 @@ type VideoFieldsThumbnail struct {
func (v *VideoFieldsThumbnail) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleNamedFragment.
const SimpleNamedFragmentOperation = `
const SimpleNamedFragment_Operation = `
query SimpleNamedFragment {
randomItem {
__typename
@@ -576,7 +576,7 @@ func SimpleNamedFragment(
) (*SimpleNamedFragmentResponse, error) {
req := &graphql.Request{
OpName: "SimpleNamedFragment",
Query: SimpleNamedFragmentOperation,
Query: SimpleNamedFragment_Operation,
}
var err error
@@ -34,7 +34,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -47,7 +47,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -425,7 +425,7 @@ type VideoFields struct {
func (v *VideoFields) GetDuration() int { return v.Duration }
// The query or mutation executed by StructOption.
const StructOptionOperation = `
const StructOption_Operation = `
query StructOption {
root {
id
@@ -460,7 +460,7 @@ func StructOption(
) (*StructOptionResponse, error) {
req := &graphql.Request{
OpName: "StructOption",
Query: StructOptionOperation,
Query: StructOption_Operation,
}
var err error
@@ -38,7 +38,7 @@ func (v *TypeNameQueryUser) GetTypename() string { return v.Typename }
func (v *TypeNameQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by TypeNameQuery.
const TypeNameQueryOperation = `
const TypeNameQuery_Operation = `
query TypeNameQuery {
user {
__typename
@@ -52,7 +52,7 @@ func TypeNameQuery(
) (*TypeNameQueryResponse, error) {
req := &graphql.Request{
OpName: "TypeNameQuery",
Query: TypeNameQueryOperation,
Query: TypeNameQuery_Operation,
}
var err error
@@ -265,7 +265,7 @@ func (v *User) GetId() testutil.ID { return v.Id }
func (v *User) GetName() string { return v.Name }
// The query or mutation executed by TypeNames.
const TypeNamesOperation = `
const TypeNames_Operation = `
query TypeNames {
user {
id
@@ -288,7 +288,7 @@ func TypeNames(
) (*Resp, error) {
req := &graphql.Request{
OpName: "TypeNames",
Query: TypeNamesOperation,
Query: TypeNames_Operation,
}
var err error
@@ -175,7 +175,7 @@ func (v *UnionNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalUnionNo
}
// The query or mutation executed by UnionNoFragmentsQuery.
const UnionNoFragmentsQueryOperation = `
const UnionNoFragmentsQuery_Operation = `
query UnionNoFragmentsQuery {
randomLeaf {
__typename
@@ -188,7 +188,7 @@ func UnionNoFragmentsQuery(
) (*UnionNoFragmentsQueryResponse, error) {
req := &graphql.Request{
OpName: "UnionNoFragmentsQuery",
Query: UnionNoFragmentsQueryOperation,
Query: UnionNoFragmentsQuery_Operation,
}
var err error
@@ -63,7 +63,7 @@ func (v *UsesEnumTwiceQueryResponse) GetMe() UsesEnumTwiceQueryMeUser { return v
func (v *UsesEnumTwiceQueryResponse) GetOtherUser() UsesEnumTwiceQueryOtherUser { return v.OtherUser }
// The query or mutation executed by UsesEnumTwiceQuery.
const UsesEnumTwiceQueryOperation = `
const UsesEnumTwiceQuery_Operation = `
query UsesEnumTwiceQuery {
Me: user {
roles
@@ -79,7 +79,7 @@ func UsesEnumTwiceQuery(
) (*UsesEnumTwiceQueryResponse, error) {
req := &graphql.Request{
OpName: "UsesEnumTwiceQuery",
Query: UsesEnumTwiceQueryOperation,
Query: UsesEnumTwiceQuery_Operation,
}
var err error
@@ -178,7 +178,7 @@ type unexportedUser struct {
func (v *unexportedUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by unexported.
const unexportedOperation = `
const unexported_Operation = `
query unexported ($query: UserQueryInput) {
user(query: $query) {
id
@@ -192,7 +192,7 @@ func unexported(
) (*unexportedResponse, error) {
req := &graphql.Request{
OpName: "unexported",
Query: unexportedOperation,
Query: unexported_Operation,
Variables: &__unexportedInput{
Query: query,
},
@@ -36,7 +36,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
var client graphql.Client
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -52,7 +52,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
var client graphql.Client
@@ -34,7 +34,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -45,7 +45,7 @@ query SimpleQuery {
func SimpleQuery() (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
var client graphql.Client
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -53,7 +53,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -39,7 +39,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -53,7 +53,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, map[string]interface{}, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -33,7 +33,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -46,7 +46,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -78,7 +78,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []*string { return v.Names }
// The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = `
const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) {
user(query: {names:$names}) {
id
@@ -93,7 +93,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) {
req := &graphql.Request{
OpName: "ListInputQuery",
Query: ListInputQueryOperation,
Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{
Names: names,
},
@@ -113,7 +113,7 @@ func ListInputQuery(
}
// The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = `
const QueryWithSlices_Operation = `
query QueryWithSlices {
user {
emails
@@ -130,7 +130,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{
OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation,
Query: QueryWithSlices_Operation,
}
var err error
@@ -78,7 +78,7 @@ type __ListInputQueryInput struct {
func (v *__ListInputQueryInput) GetNames() []string { return v.Names }
// The query or mutation executed by ListInputQuery.
const ListInputQueryOperation = `
const ListInputQuery_Operation = `
query ListInputQuery ($names: [String]) {
user(query: {names:$names}) {
id
@@ -93,7 +93,7 @@ func ListInputQuery(
) (*ListInputQueryResponse, error) {
req := &graphql.Request{
OpName: "ListInputQuery",
Query: ListInputQueryOperation,
Query: ListInputQuery_Operation,
Variables: &__ListInputQueryInput{
Names: names,
},
@@ -113,7 +113,7 @@ func ListInputQuery(
}
// The query or mutation executed by QueryWithSlices.
const QueryWithSlicesOperation = `
const QueryWithSlices_Operation = `
query QueryWithSlices {
user {
emails
@@ -130,7 +130,7 @@ func QueryWithSlices(
) (*QueryWithSlicesResponse, error) {
req := &graphql.Request{
OpName: "QueryWithSlices",
Query: QueryWithSlicesOperation,
Query: QueryWithSlices_Operation,
}
var err error
@@ -36,7 +36,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() testutil.ID { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -50,7 +50,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error
@@ -35,7 +35,7 @@ type SimpleQueryUser struct {
func (v *SimpleQueryUser) GetId() string { return v.Id }
// The query or mutation executed by SimpleQuery.
const SimpleQueryOperation = `
const SimpleQuery_Operation = `
query SimpleQuery {
user {
id
@@ -49,7 +49,7 @@ func SimpleQuery(
) (*SimpleQueryResponse, error) {
req := &graphql.Request{
OpName: "SimpleQuery",
Query: SimpleQueryOperation,
Query: SimpleQuery_Operation,
}
var err error