I have create schema in separate folder(modal) user.js file then how to validate ? Can you please tell me it helps me a lot Do we need to create two schema , one mongoose schema and second joi schema
Sohaib You won't be able to do it via joi, you'll have to take the input and then query db to see if the email exists or not and accordingly send back api response.
THANK you ..nice information .. i jioned as fresher,,today your video contain help me ..
Sir really like your videos. Keep making them.
Very simple and explain video for Joi validator
❤❤❤it is very helpful sir.. thanks
thanks. It helped👍
Sir, thanks so much!
Hi sir what if I want car and truck how to validate these both at same time?
Thanks
I have create schema in separate folder(modal) user.js file then how to validate ? Can you please tell me it helps me a lot
Do we need to create two schema , one mongoose schema and second joi schema
Joi is a powerful tool, but in most times you don't really need it, a simples 'if' do it for you.
i have to validate start_date is less than End_date for any pacakge or promocode ,how i proceed?
sir like your work
please tell me about who to check email address as unique in mysql using node.js joi package.
help me !
Sohaib You won't be able to do it via joi, you'll have to take the input and then query db to see if the email exists or not and accordingly send back api response.
Sir doubt a rhe hai bhut kya apke no. Mil jayenge and koi group jisne ham apse doubt clear kr ske.
haji kya doubt hai ?
@@CodeImprove bhut doubt hai sir koi chating platform bta dijiye jha apse baat ho jaye
mongoose schema has already error then we need this