Skip to content

Validate only one path #12004

Answered by vkarpov15
samislam asked this question in Q&A
Jun 28, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

mySchema.path('password').doValidate(value, fn). Or you can do doc.validate(['password']).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@samislam
Comment options

@samislam
Comment options

@vkarpov15
Comment options

@vkarpov15
Comment options

@samislam
Comment options

Answer selected by samislam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants