@graphql-tools/merge 6.2.8-alpha-1cef0f11.0 → 6.2.9

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/es5/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __values, __read, __spread, __assign, __awaiter, __generator, __rest } from 'tslib';
2
- import { mergeDeep, compareNodes, isNotEqual, printSchemaWithDirectives, createSchemaDefinition, asArray, getResolversFromSchema, SchemaDirectiveVisitor } from '@graphql-tools/utils/es5';
2
+ import { mergeDeep, compareNodes, isNotEqual, getDocumentNodeFromSchema, createSchemaDefinition, asArray, getResolversFromSchema, SchemaDirectiveVisitor } from '@graphql-tools/utils/es5';
3
3
  import { getDescription, visit, print, Source, Kind, isSchema, parse, isScalarType, isSpecifiedScalarType, isIntrospectionType, isObjectType, isInterfaceType, isInputObjectType, isUnionType, isEnumType, buildSchema, buildASTSchema } from 'graphql';
4
4
  import { addResolversToSchema, addErrorLoggingToSchema } from '@graphql-tools/schema/es5';
5
5
 
@@ -921,7 +921,7 @@ function mergeGraphQLTypes(types, config) {
921
921
  type = mergeTypeDefs(type);
922
922
  }
923
923
  if (isSchema(type)) {
924
- return parse(printSchemaWithDirectives(type));
924
+ return getDocumentNodeFromSchema(type);
925
925
  }
926
926
  else if (isStringTypes(type) || isSourceTypes(type)) {
927
927
  return parse(type);