Mongoose schema

Need a regular mongoose schema ?

Why we use JOI

  1. You need to create a validator file for each mongoose service in your app

  2. The file need to export a function that will return a JOI schema

  3. With joigoose we will convert this schema to mongoose schema

  4. With joi2jso we will convert this scheme to JSON schema for the dashboard

Last updated

Was this helpful?