Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Custom directive runs after database insertion #39

Closed
gpaluk opened this issue Feb 6, 2021 · 0 comments
Closed

Custom directive runs after database insertion #39

gpaluk opened this issue Feb 6, 2021 · 0 comments

Comments

@gpaluk
Copy link

gpaluk commented Feb 6, 2021

Custom directives run after the data has been injected into the database and therefore unfit for the most obvious use-cases. For example, when annotating a field with validation prior to being inserted into the database is not possible. The only alternative to use a custom resolver for almost every field. This poses the problem that all graphql schema declarations would need to be annotated with neo4j_ignore thus rendering the entire makeAugmentedSchema almost obsolete.

@gpaluk gpaluk closed this as completed Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant