@@ -130,14 +130,6 @@ function executeQuery(
130
130
return executeSync ( { schema, document, variableValues } ) ;
131
131
}
132
132
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
-
141
133
describe ( 'Execute: Handles inputs' , ( ) => {
142
134
describe ( 'Handles objects and nullability' , ( ) => {
143
135
describe ( 'using inline structs' , ( ) => {
@@ -1032,7 +1024,7 @@ describe('Execute: Handles inputs', () => {
1032
1024
} ) ;
1033
1025
1034
1026
it ( 'when a value is required and provided' , ( ) => {
1035
- const result = executeQueryWithFragmentArguments ( `
1027
+ const result = executeQuery ( `
1036
1028
query {
1037
1029
...a(value: "A")
1038
1030
}
@@ -1049,7 +1041,7 @@ describe('Execute: Handles inputs', () => {
1049
1041
} ) ;
1050
1042
1051
1043
it ( 'when a value is required and not provided' , ( ) => {
1052
- const result = executeQueryWithFragmentArguments ( `
1044
+ const result = executeQuery ( `
1053
1045
query {
1054
1046
...a
1055
1047
}
@@ -1076,7 +1068,7 @@ describe('Execute: Handles inputs', () => {
1076
1068
} ) ;
1077
1069
1078
1070
it ( 'when the definition has a default and is provided' , ( ) => {
1079
- const result = executeQueryWithFragmentArguments ( `
1071
+ const result = executeQuery ( `
1080
1072
query {
1081
1073
...a(value: "A")
1082
1074
}
@@ -1093,7 +1085,7 @@ describe('Execute: Handles inputs', () => {
1093
1085
} ) ;
1094
1086
1095
1087
it ( 'when the definition has a default and is not provided' , ( ) => {
1096
- const result = executeQueryWithFragmentArguments ( `
1088
+ const result = executeQuery ( `
1097
1089
query {
1098
1090
...a
1099
1091
}
@@ -1110,7 +1102,7 @@ describe('Execute: Handles inputs', () => {
1110
1102
} ) ;
1111
1103
1112
1104
it ( 'when the definition has a non-nullable default and is provided null' , ( ) => {
1113
- const result = executeQueryWithFragmentArguments ( `
1105
+ const result = executeQuery ( `
1114
1106
query {
1115
1107
...a(value: null)
1116
1108
}
@@ -1137,7 +1129,7 @@ describe('Execute: Handles inputs', () => {
1137
1129
} ) ;
1138
1130
1139
1131
it ( 'when the definition has no default and is not provided' , ( ) => {
1140
- const result = executeQueryWithFragmentArguments ( `
1132
+ const result = executeQuery ( `
1141
1133
query {
1142
1134
...a
1143
1135
}
@@ -1155,7 +1147,7 @@ describe('Execute: Handles inputs', () => {
1155
1147
} ) ;
1156
1148
1157
1149
it ( 'when the argument variable is nested in a complex type' , ( ) => {
1158
- const result = executeQueryWithFragmentArguments ( `
1150
+ const result = executeQuery ( `
1159
1151
query {
1160
1152
...a(value: "C")
1161
1153
}
@@ -1172,7 +1164,7 @@ describe('Execute: Handles inputs', () => {
1172
1164
} ) ;
1173
1165
1174
1166
it ( 'when argument variables are used recursively' , ( ) => {
1175
- const result = executeQueryWithFragmentArguments ( `
1167
+ const result = executeQuery ( `
1176
1168
query {
1177
1169
...a(aValue: "C")
1178
1170
}
0 commit comments