@@ -270,7 +270,9 @@ export function experimentalExecuteIncrementally(
270
270
return { errors : validatedExecutionArgs } ;
271
271
}
272
272
273
- return executeQueryOrMutationOrSubscriptionEvent ( validatedExecutionArgs ) ;
273
+ return experimentalExecuteQueryOrMutationOrSubscriptionEvent (
274
+ validatedExecutionArgs ,
275
+ ) ;
274
276
}
275
277
276
278
/**
@@ -288,7 +290,16 @@ export function experimentalExecuteIncrementally(
288
290
* at which point we still log the error and null the parent field, which
289
291
* in this case is the entire response.
290
292
*/
291
- function executeQueryOrMutationOrSubscriptionEvent (
293
+ export function executeQueryOrMutationOrSubscriptionEvent (
294
+ validatedExecutionArgs : ValidatedExecutionArgs ,
295
+ ) : PromiseOrValue < ExecutionResult > {
296
+ const result = experimentalExecuteQueryOrMutationOrSubscriptionEvent (
297
+ validatedExecutionArgs ,
298
+ ) ;
299
+ return ensureSinglePayload ( result ) ;
300
+ }
301
+
302
+ export function experimentalExecuteQueryOrMutationOrSubscriptionEvent (
292
303
validatedExecutionArgs : ValidatedExecutionArgs ,
293
304
) : PromiseOrValue < ExecutionResult | ExperimentalIncrementalExecutionResults > {
294
305
const exeContext : ExecutionContext = {
@@ -1981,10 +1992,7 @@ function mapSourceToResponse(
1981
1992
export function executeSubscriptionEvent (
1982
1993
validatedExecutionArgs : ValidatedExecutionArgs ,
1983
1994
) : PromiseOrValue < ExecutionResult > {
1984
- const result = executeQueryOrMutationOrSubscriptionEvent (
1985
- validatedExecutionArgs ,
1986
- ) ;
1987
- return ensureSinglePayload ( result ) ;
1995
+ return executeQueryOrMutationOrSubscriptionEvent ( validatedExecutionArgs ) ;
1988
1996
}
1989
1997
1990
1998
/**
0 commit comments