From 4b9dd3fd76ce82697493f9e0ba127cdb266f9ddb Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Mon, 31 Jul 2023 17:03:10 +0300 Subject: [PATCH] Do not do batching for a single subschema --- packages/runtime/src/useSubschema.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/runtime/src/useSubschema.ts b/packages/runtime/src/useSubschema.ts index 2490e00a516f7..9162194a188a2 100644 --- a/packages/runtime/src/useSubschema.ts +++ b/packages/runtime/src/useSubschema.ts @@ -82,9 +82,11 @@ function getExecuteFn(subschema: Subschema) { if (executor == null) { executor = createDefaultExecutor(subschema.schema); } + /* if (subschema.batch) { executor = createBatchingExecutor(executor); } + */ const transformationContext: Record = {}; const transformedRequest = applyRequestTransforms( originalRequest,