Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-05-2020 12:34 PM
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.
10-06-2020 11:02 AM
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.
10-06-2020 01:13 PM
Did you take a look at Implementing Custom Directives it seems to support what you're asking
All the sessions of the conference are now available online