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

Ignoring fields with @neo4j_ignore #183

Merged
merged 11 commits into from
Jan 21, 2019
Merged

Ignoring fields with @neo4j_ignore #183

merged 11 commits into from
Jan 21, 2019

Conversation

michaeldgraham
Copy link
Collaborator

This PR introduces support for ignoring fields during the GraphQL to Cypher translation process by using a @neo4j_ignore field directive.

When using makeAugmentedSchema or augmentSchema, if a custom resolver is provided for a field, then a @neo4j_ignore directive is added to that field.

  • Ignore directives are not generated for computed, temporal, and relation fields, but can be added manually.
  • If a field is ignored, it is not used during the schema augmentation process. If every field of a type is ignored, the type is excluded from the generated CRUD API.
  • Ignored fields are prevented from being used as primary keys.

@johnymontana johnymontana merged commit 7559802 into neo4j-graphql:master Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants