Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

joi object id validation

npm i joi-objectid

const Joi = require('joi');
Joi.objectId = require('joi-objectid')(Joi)

// now you can use Joi.objectId to validate the post request sent by user
 
PREVIOUS NEXT
Tagged: #joi #object #id #validation
ADD COMMENT
Topic
Name
3+4 =