cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Custom validation schema directives

I would like to add custom validation schema directives to makeAugmentedSchema when using neo4j-graphql-js . I have many fields that I would like to validate, such as email addresses, min/max length for fields, password complexity. I understand that adding custom resolvers would be possible however it doesn't seem like a good fit when using many validation constraints on most graphql fields. I have already tried adding a couple of directives, however they do not get applied as I expect.

2 REPLIES 2

MuddyBootsCode
Graph Steward

Would you mind sharing your schema and the directives you're trying to use? Also, any errors, etc. you're getting will help in trying to get you where you're going.

accounts
Node Clone

Did you take a look at Implementing Custom Directives it seems to support what you're asking