@graphql-tools/stitch 10.1.4-alpha-b323a207564a3292807f99fe3e654b3482547755 → 10.1.4-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-tools/stitch
2
2
 
3
- ## 10.1.4-alpha-b323a207564a3292807f99fe3e654b3482547755
3
+ ## 10.1.4-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a
4
4
  ### Patch Changes
5
5
 
6
6
 
@@ -13,10 +13,10 @@
13
13
  hello
14
14
  }
15
15
  ```
16
- - Updated dependencies [[`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9), [`1dbc653`](https://github.com/graphql-hive/gateway/commit/1dbc6536cb992a705cac7894acca6fe5431b72de), [`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9)]:
17
- - @graphql-tools/wrap@11.1.0-alpha-b323a207564a3292807f99fe3e654b3482547755
18
- - @graphql-tools/delegate@12.0.0-alpha-b323a207564a3292807f99fe3e654b3482547755
19
- - @graphql-tools/batch-delegate@10.0.6-alpha-b323a207564a3292807f99fe3e654b3482547755
16
+ - Updated dependencies [[`1dbc653`](https://github.com/graphql-hive/gateway/commit/1dbc6536cb992a705cac7894acca6fe5431b72de)]:
17
+ - @graphql-tools/delegate@11.1.4-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a
18
+ - @graphql-tools/batch-delegate@10.0.6-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a
19
+ - @graphql-tools/wrap@11.0.6-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a
20
20
 
21
21
  ## 10.1.3
22
22
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3227,15 +3227,7 @@ function createStitchingExecutor(stitchedSchema) {
3227
3227
  );
3228
3228
  const data = {};
3229
3229
  for (const [fieldName, fieldNodes] of fields) {
3230
- const fieldNode = fieldNodes[0];
3231
- if (!fieldNode) {
3232
- continue;
3233
- }
3234
- const fieldInstance = rootType.getFields()[fieldName];
3235
- if (!fieldInstance) {
3236
- continue;
3237
- }
3238
- const responseKey = fieldNode.alias?.value ?? fieldName;
3230
+ const responseKey = fieldNodes[0]?.alias?.value ?? fieldName;
3239
3231
  const subschemaForField = subschemas.find((subschema) => {
3240
3232
  const subschemaSchema = delegate.isSubschemaConfig(subschema) ? subschema.schema : subschema;
3241
3233
  const rootType2 = utils.getDefinedRootType(
@@ -3244,15 +3236,9 @@ function createStitchingExecutor(stitchedSchema) {
3244
3236
  );
3245
3237
  return rootType2.getFields()[fieldName] != null;
3246
3238
  });
3247
- const args = utils.getArgumentValues(
3248
- fieldInstance,
3249
- fieldNode,
3250
- executorRequest.variables
3251
- );
3252
3239
  let result = await delegate.delegateToSchema({
3253
3240
  schema: subschemaForField || stitchedSchema,
3254
3241
  rootValue: executorRequest.rootValue,
3255
- args,
3256
3242
  context: executorRequest.context,
3257
3243
  info: {
3258
3244
  schema: stitchedSchema,
@@ -3261,10 +3247,8 @@ function createStitchingExecutor(stitchedSchema) {
3261
3247
  operation,
3262
3248
  fragments,
3263
3249
  parentType: rootType,
3264
- returnType: fieldInstance.type,
3265
- variableValues: executorRequest.variables,
3266
- rootValue: executorRequest.rootValue,
3267
- path: { typename: void 0, key: responseKey, prev: void 0 }
3250
+ returnType: rootType.getFields()[fieldName]?.type,
3251
+ variableValues: executorRequest.variables
3268
3252
  }
3269
3253
  });
3270
3254
  if (Array.isArray(result)) {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { handleOverrideByDelegation as handleOverrideByDelegation$1, subtractSelectionSets, extractUnavailableFields, leftOverByDelegationPlan, extractUnavailableFieldsFromSelectionSet, delegateToSchema, cloneSubschemaConfig, isSubschemaConfig, defaultMergedResolver, Subschema } from '@graphql-tools/delegate';
2
2
  import { mergeType, mergeInputType, mergeInterface, mergeUnion, mergeEnum, mergeScalar, mergeTypeDefs, mergeResolvers, mergeExtensions, applyExtensions } from '@graphql-tools/merge';
3
3
  import { extendResolversFromInterfaces, addResolversToSchema, assertResolversPresent, makeExecutableSchema } from '@graphql-tools/schema';
4
- import { memoize3, collectSubFields, memoize2, memoize1, parseSelectionSet, collectFields, isSome, getImplementingTypes, getRootTypeNames, filterSchema, mergeDeep, getDescription, createNamedStub, createStub, getRootTypeMap, getRootTypes, inspect, rewireTypes, getOperationASTFromRequest, getDefinedRootType, getArgumentValues } from '@graphql-tools/utils';
4
+ import { memoize3, collectSubFields, memoize2, memoize1, parseSelectionSet, collectFields, isSome, getImplementingTypes, getRootTypeNames, filterSchema, mergeDeep, getDescription, createNamedStub, createStub, getRootTypeMap, getRootTypes, inspect, rewireTypes, getOperationASTFromRequest, getDefinedRootType } from '@graphql-tools/utils';
5
5
  import { isAbstractType, Kind, TypeNameMetaFieldDef, getNamedType, GraphQLList, isLeafType, isInputObjectType, isUnionType, print, isObjectType, isInterfaceType, visit, isScalarType, isCompositeType, isNonNullType, isEnumType, isListType, getNullableType, isNullableType, GraphQLObjectType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLScalarType, GraphQLDirective, valueFromASTUntyped, getDirectiveValues, GraphQLDeprecatedDirective, DirectiveLocation, isNamedType, isIntrospectionType, isDirective, isSpecifiedScalarType, specifiedDirectives, GraphQLSchema, extendSchema } from 'graphql';
6
6
  import { handleMaybePromise } from '@whatwg-node/promise-helpers';
7
7
  import { batchDelegateToSchema } from '@graphql-tools/batch-delegate';
@@ -3225,15 +3225,7 @@ function createStitchingExecutor(stitchedSchema) {
3225
3225
  );
3226
3226
  const data = {};
3227
3227
  for (const [fieldName, fieldNodes] of fields) {
3228
- const fieldNode = fieldNodes[0];
3229
- if (!fieldNode) {
3230
- continue;
3231
- }
3232
- const fieldInstance = rootType.getFields()[fieldName];
3233
- if (!fieldInstance) {
3234
- continue;
3235
- }
3236
- const responseKey = fieldNode.alias?.value ?? fieldName;
3228
+ const responseKey = fieldNodes[0]?.alias?.value ?? fieldName;
3237
3229
  const subschemaForField = subschemas.find((subschema) => {
3238
3230
  const subschemaSchema = isSubschemaConfig(subschema) ? subschema.schema : subschema;
3239
3231
  const rootType2 = getDefinedRootType(
@@ -3242,15 +3234,9 @@ function createStitchingExecutor(stitchedSchema) {
3242
3234
  );
3243
3235
  return rootType2.getFields()[fieldName] != null;
3244
3236
  });
3245
- const args = getArgumentValues(
3246
- fieldInstance,
3247
- fieldNode,
3248
- executorRequest.variables
3249
- );
3250
3237
  let result = await delegateToSchema({
3251
3238
  schema: subschemaForField || stitchedSchema,
3252
3239
  rootValue: executorRequest.rootValue,
3253
- args,
3254
3240
  context: executorRequest.context,
3255
3241
  info: {
3256
3242
  schema: stitchedSchema,
@@ -3259,10 +3245,8 @@ function createStitchingExecutor(stitchedSchema) {
3259
3245
  operation,
3260
3246
  fragments,
3261
3247
  parentType: rootType,
3262
- returnType: fieldInstance.type,
3263
- variableValues: executorRequest.variables,
3264
- rootValue: executorRequest.rootValue,
3265
- path: { typename: void 0, key: responseKey, prev: void 0 }
3248
+ returnType: rootType.getFields()[fieldName]?.type,
3249
+ variableValues: executorRequest.variables
3266
3250
  }
3267
3251
  });
3268
3252
  if (Array.isArray(result)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/stitch",
3
- "version": "10.1.4-alpha-b323a207564a3292807f99fe3e654b3482547755",
3
+ "version": "10.1.4-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {
@@ -38,13 +38,13 @@
38
38
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@graphql-tools/batch-delegate": "10.0.6-alpha-b323a207564a3292807f99fe3e654b3482547755",
42
- "@graphql-tools/delegate": "12.0.0-alpha-b323a207564a3292807f99fe3e654b3482547755",
41
+ "@graphql-tools/batch-delegate": "10.0.6-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a",
42
+ "@graphql-tools/delegate": "11.1.4-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a",
43
43
  "@graphql-tools/executor": "^1.4.13",
44
44
  "@graphql-tools/merge": "^9.1.5",
45
45
  "@graphql-tools/schema": "^10.0.29",
46
46
  "@graphql-tools/utils": "^10.10.3",
47
- "@graphql-tools/wrap": "11.1.0-alpha-b323a207564a3292807f99fe3e654b3482547755",
47
+ "@graphql-tools/wrap": "11.0.6-rc-5f2202172a15bb6b19a26819cf952d45dac7c34a",
48
48
  "@whatwg-node/promise-helpers": "^1.3.2",
49
49
  "tslib": "^2.8.1"
50
50
  },