Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Latest commit

 

History

History
16 lines (10 loc) · 1.06 KB

README.md

File metadata and controls

16 lines (10 loc) · 1.06 KB

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 from graphql-tools to remove unused types from the output.

graphql-schema-subset

Builds a subset of your GraphQL schema. This is designed to build a subset of your schema that can be exposed publically.

Features

  • 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.

TODO:

  • Add tests for enums and unions and such.