mongoose id validator

Solutions on MaxInterview for mongoose id validator by the best coders in the world

showing results for - "mongoose id validator"
Emily
12 Nov 2017
1var mongoose = require('mongoose');
2var isValid = mongoose.Types.ObjectId.isValid('5c0a7922c9d89830f4911426'); //true
3