THIS PACKAGE HAS BEEN DEPRECATED: This approach to generation of schema subsets is no deprecated, and longer recommended. Instead, we recommend using a code-based approach to Schema generation, which allows for generating a subset of the schema via code exclusion patterns. We specifically use GiraphQL, which has this capability built in via plugins. We use this in conjuction with the
pruneSchema
function fromgraphql-tools
to remove unused types from the output.
Builds a subset of your GraphQL schema. This is designed to build a subset of your schema that can be exposed publically.
- Automatically strips all schema directives.
- Supports preserving a subset of the fields in the Query, Mutation, and Subscription types.
- Removes any unused types in the schema.
- Add tests for enums and unions and such.