Replies: 1 comment
-
right now you can use https://github.com/lvauvillier/nexus-plugin-shield. some better solutions like graphql-nexus/nexus#661 is under discussion. I hope one day we will have something like this: t.crud.createOneUser({
shield: some_shield_rule
}) or t.field.name({
shield: some_shield_rule
}) This will use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am leveraging the
crud
convenience method to define mutations for my GraphQL API:However, I cannot figure out how to define custom validation rules (i.e. checking email addresses, minimum length for fields, etc) that lie outside of the type safety provided by GraphQL.
Does anyone have a recommended approach for this?
Beta Was this translation helpful? Give feedback.
All reactions