Mongoose schema
Last updated
Was this helpful?
Last updated
Was this helpful?
Why we use JOI
You need to create a validator file for each mongoose service in your app
The file need to export a function that will return a schema
With we will convert this schema to mongoose schema
With we will convert this scheme to JSON schema for the dashboard