@@ -130,14 +130,6 @@ function executeQuery(
130130 return executeSync ( { schema, document, variableValues } ) ;
131131}
132132
133- function executeQueryWithFragmentArguments (
134- query : string ,
135- variableValues ?: { [ variable : string ] : unknown } ,
136- ) {
137- const document = parse ( query , { allowFragmentArguments : true } ) ;
138- return executeSync ( { schema, document, variableValues } ) ;
139- }
140-
141133describe ( 'Execute: Handles inputs' , ( ) => {
142134 describe ( 'Handles objects and nullability' , ( ) => {
143135 describe ( 'using inline structs' , ( ) => {
@@ -1032,7 +1024,7 @@ describe('Execute: Handles inputs', () => {
10321024 } ) ;
10331025
10341026 it ( 'when a value is required and provided' , ( ) => {
1035- const result = executeQueryWithFragmentArguments ( `
1027+ const result = executeQuery ( `
10361028 query {
10371029 ...a(value: "A")
10381030 }
@@ -1049,7 +1041,7 @@ describe('Execute: Handles inputs', () => {
10491041 } ) ;
10501042
10511043 it ( 'when a value is required and not provided' , ( ) => {
1052- const result = executeQueryWithFragmentArguments ( `
1044+ const result = executeQuery ( `
10531045 query {
10541046 ...a
10551047 }
@@ -1076,7 +1068,7 @@ describe('Execute: Handles inputs', () => {
10761068 } ) ;
10771069
10781070 it ( 'when the definition has a default and is provided' , ( ) => {
1079- const result = executeQueryWithFragmentArguments ( `
1071+ const result = executeQuery ( `
10801072 query {
10811073 ...a(value: "A")
10821074 }
@@ -1093,7 +1085,7 @@ describe('Execute: Handles inputs', () => {
10931085 } ) ;
10941086
10951087 it ( 'when the definition has a default and is not provided' , ( ) => {
1096- const result = executeQueryWithFragmentArguments ( `
1088+ const result = executeQuery ( `
10971089 query {
10981090 ...a
10991091 }
@@ -1110,7 +1102,7 @@ describe('Execute: Handles inputs', () => {
11101102 } ) ;
11111103
11121104 it ( 'when the definition has a non-nullable default and is provided null' , ( ) => {
1113- const result = executeQueryWithFragmentArguments ( `
1105+ const result = executeQuery ( `
11141106 query {
11151107 ...a(value: null)
11161108 }
@@ -1137,7 +1129,7 @@ describe('Execute: Handles inputs', () => {
11371129 } ) ;
11381130
11391131 it ( 'when the definition has no default and is not provided' , ( ) => {
1140- const result = executeQueryWithFragmentArguments ( `
1132+ const result = executeQuery ( `
11411133 query {
11421134 ...a
11431135 }
@@ -1155,7 +1147,7 @@ describe('Execute: Handles inputs', () => {
11551147 } ) ;
11561148
11571149 it ( 'when the argument variable is nested in a complex type' , ( ) => {
1158- const result = executeQueryWithFragmentArguments ( `
1150+ const result = executeQuery ( `
11591151 query {
11601152 ...a(value: "C")
11611153 }
@@ -1172,7 +1164,7 @@ describe('Execute: Handles inputs', () => {
11721164 } ) ;
11731165
11741166 it ( 'when argument variables are used recursively' , ( ) => {
1175- const result = executeQueryWithFragmentArguments ( `
1167+ const result = executeQuery ( `
11761168 query {
11771169 ...a(aValue: "C")
11781170 }
0 commit comments