@@ -19,12 +19,13 @@ import {
1919import { GraphQLID , GraphQLString } from '../../type/scalars.js' ;
2020import { GraphQLSchema } from '../../type/schema.js' ;
2121
22- import { legacyExecuteIncrementally } from '../legacyExecuteIncrementally.js' ;
2322import type {
2423 LegacyInitialIncrementalExecutionResult ,
2524 LegacySubsequentIncrementalExecutionResult ,
2625} from '../transformResult.js' ;
2726
27+ import { execute } from './execute.js' ;
28+
2829const friendType = new GraphQLObjectType ( {
2930 fields : {
3031 id : { type : GraphQLID } ,
@@ -90,7 +91,7 @@ async function complete(
9091 rootValue : unknown = { } ,
9192 enableEarlyExecution = false ,
9293) {
93- const result = await legacyExecuteIncrementally ( {
94+ const result = await execute ( {
9495 schema,
9596 document,
9697 rootValue,
@@ -115,7 +116,7 @@ async function completeAsync(
115116 numCalls : number ,
116117 rootValue : unknown = { } ,
117118) {
118- const result = await legacyExecuteIncrementally ( {
119+ const result = await execute ( {
119120 schema,
120121 document,
121122 rootValue,
@@ -1791,7 +1792,7 @@ describe('Execute: legacy stream directive', () => {
17911792 }
17921793 ` ) ;
17931794
1794- const executeResult = await legacyExecuteIncrementally ( {
1795+ const executeResult = await execute ( {
17951796 schema,
17961797 document,
17971798 rootValue : {
@@ -1971,7 +1972,7 @@ describe('Execute: legacy stream directive', () => {
19711972 }
19721973 }
19731974 ` ) ;
1974- const executeResult = await legacyExecuteIncrementally ( {
1975+ const executeResult = await execute ( {
19751976 schema,
19761977 document,
19771978 rootValue : {
@@ -2072,7 +2073,7 @@ describe('Execute: legacy stream directive', () => {
20722073 }
20732074 ` ) ;
20742075
2075- const executeResult = await legacyExecuteIncrementally ( {
2076+ const executeResult = await execute ( {
20762077 schema,
20772078 document,
20782079 rootValue : {
@@ -2182,7 +2183,7 @@ describe('Execute: legacy stream directive', () => {
21822183 }
21832184 ` ) ;
21842185
2185- const executeResult = await legacyExecuteIncrementally ( {
2186+ const executeResult = await execute ( {
21862187 schema,
21872188 document,
21882189 rootValue : {
@@ -2292,7 +2293,7 @@ describe('Execute: legacy stream directive', () => {
22922293 }
22932294 ` ) ;
22942295
2295- const executeResult = await legacyExecuteIncrementally ( {
2296+ const executeResult = await execute ( {
22962297 schema,
22972298 document,
22982299 rootValue : {
@@ -2344,7 +2345,7 @@ describe('Execute: legacy stream directive', () => {
23442345 }
23452346 ` ) ;
23462347
2347- const executeResult = await legacyExecuteIncrementally ( {
2348+ const executeResult = await execute ( {
23482349 schema,
23492350 document,
23502351 rootValue : {
@@ -2404,7 +2405,7 @@ describe('Execute: legacy stream directive', () => {
24042405 }
24052406 ` ) ;
24062407
2407- const executeResult = await legacyExecuteIncrementally ( {
2408+ const executeResult = await execute ( {
24082409 schema,
24092410 document,
24102411 rootValue : {
0 commit comments