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

kesne/graphql-schema-subset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generate subsets of your GraphQL Schema.

Resources

Stars

Watchers

Forks

Packages

No packages published