@graphql-tools/utils 7.5.2 → 7.7.1
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/executor.d.ts +13 -0
- package/es5/index.cjs.js +4 -0
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.d.ts +1 -0
- package/es5/index.esm.js +4 -0
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +1 -1
- package/es5/types.d.ts +7 -1
- package/executor.d.ts +13 -0
- package/index.cjs.js +4 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.esm.js +4 -0
- package/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +7 -1
package/es5/index.d.ts
CHANGED
package/es5/index.esm.js
CHANGED
|
@@ -3484,6 +3484,10 @@ function pruneSchema(schema, options) {
|
|
|
3484
3484
|
visitTypes(pruningContext, schema);
|
|
3485
3485
|
return mapSchema(schema, (_a = {},
|
|
3486
3486
|
_a[MapperKind.TYPE] = function (type) {
|
|
3487
|
+
// If we should NOT prune the type, return it immediately as unmodified
|
|
3488
|
+
if (options.skipPruning && options.skipPruning(type)) {
|
|
3489
|
+
return type;
|
|
3490
|
+
}
|
|
3487
3491
|
if (isObjectType(type) || isInputObjectType(type)) {
|
|
3488
3492
|
if ((!Object.keys(type.getFields()).length && !options.skipEmptyCompositeTypePruning) ||
|
|
3489
3493
|
(pruningContext.unusedTypes[type.name] && !options.skipUnusedTypesPruning)) {
|