This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
Configuring the schema augmentation process #131
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains initial support for configuring the schema augmentation process, resolving the following issues:
A
config
key is added to themakeAugmentedSchema
argument object:And the same configuration object is added as a second argument to
augmentSchema
:By providing a boolean value, you can prevent the generation of the Query or Mutation API generally. For more fine-grained control, you can provide an array of type names to exclude (such as payload types, etc.) from the schema augmentation process. Excluding a type blocks the following associated API features from being generated during the schema augmentation process.
Query API
Mutation API
create
,update
, anddelete
node mutations are not generated.Add
andRemove
relation mutations are not generated for any relation in the schema coming from or going to excluded type.Example