Skip to content

Commit

Permalink
perf: Assume internally created schemas as valid (#6629)
Browse files Browse the repository at this point in the history
* perf: Assume internally created schemas as valid

* Changeset and style change

* Make the assumeValid user configurable
  • Loading branch information
aarne authored Oct 30, 2024
1 parent 12b1311 commit 2bb2adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-goats-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/stitch': minor
---

Performance improvement in stitchSchemas
1 change: 1 addition & 0 deletions packages/stitch/src/stitchSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function stitchSchemas<TContext extends Record<string, any> = Record<stri
astNode: schemaDefs.schemaDef,
extensionASTNodes: schemaDefs.schemaExtensions,
extensions: null,
assumeValid: rest.assumeValid,
});

for (const extension of extensions) {
Expand Down

0 comments on commit 2bb2adb

Please sign in to comment.