Could you please give please tell me how to give validators in Mongodb database? : I m working on backend with database MongoDB  .I have already done server side validation using node js , now I need to add validation in database level .Could you pls tell me how to give required validators , unique validators ,  exists validators in MongoDB   As of now I have  added one validator in MongoDB like that
db.createCollection(name:("string")). 
