@graphql-tools/load 7.3.1 → 7.3.2

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.
Files changed (3) hide show
  1. package/index.js +2 -1
  2. package/index.mjs +2 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -583,6 +583,7 @@ function loadDocumentsSync(pointerOrPointers, options) {
583
583
  * @param options Additional options
584
584
  */
585
585
  async function loadSchema(schemaPointers, options) {
586
+ var _a;
586
587
  const sources = await loadTypedefs(schemaPointers, {
587
588
  ...options,
588
589
  filterKinds: OPERATION_KINDS,
@@ -590,7 +591,7 @@ async function loadSchema(schemaPointers, options) {
590
591
  const { schemas, typeDefs } = collectSchemasAndTypeDefs(sources);
591
592
  const mergeSchemasOptions = {
592
593
  ...options,
593
- schemas,
594
+ schemas: schemas.concat((_a = options.schemas) !== null && _a !== void 0 ? _a : []),
594
595
  typeDefs,
595
596
  };
596
597
  const schema$1 = schema.mergeSchemas(mergeSchemasOptions);
package/index.mjs CHANGED
@@ -577,6 +577,7 @@ function loadDocumentsSync(pointerOrPointers, options) {
577
577
  * @param options Additional options
578
578
  */
579
579
  async function loadSchema(schemaPointers, options) {
580
+ var _a;
580
581
  const sources = await loadTypedefs(schemaPointers, {
581
582
  ...options,
582
583
  filterKinds: OPERATION_KINDS,
@@ -584,7 +585,7 @@ async function loadSchema(schemaPointers, options) {
584
585
  const { schemas, typeDefs } = collectSchemasAndTypeDefs(sources);
585
586
  const mergeSchemasOptions = {
586
587
  ...options,
587
- schemas,
588
+ schemas: schemas.concat((_a = options.schemas) !== null && _a !== void 0 ? _a : []),
588
589
  typeDefs,
589
590
  };
590
591
  const schema = mergeSchemas(mergeSchemasOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/load",
3
- "version": "7.3.1",
3
+ "version": "7.3.2",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {