Unique field validation while updating in adonis 5 #1288
Answered
by
ammezie
subhamcodes
asked this question in
Help
-
"@adonisjs/core": "^5.0.0-preview-rc" There is no description regarding the unique rule. I want to check for unique fields while updating.
|
Beta Was this translation helpful? Give feedback.
Answered by
ammezie
Jul 21, 2020
Replies: 2 comments 2 replies
-
You can check the docs for the Same can be applied to the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RomainLanz
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can check the docs for the
exists
rule: https://preview.adonisjs.com/guides/validator/rules#rulesexistsSame can be applied to the
unique
rule.