UNPKG

@graphql-tools/wrap

Version:

A set of utils for faster development of GraphQL tools

10 lines (9 loc) 294 B
import { pruneSchema } from '@graphql-tools/utils'; export default class PruneTypes { constructor(options = {}) { this.options = options; } transformSchema(originalWrappingSchema, _subschemaConfig) { return pruneSchema(originalWrappingSchema, this.options); } }