dimanche 5 avril 2015

mongoDB ensure that user don't add a random document to a collection

I was asked to build a CRUD web app using flask and mongoDB, and I have a requirement that says :


"Ensure that a user can't add a random document to a collection. In a config file just say that the only field a user can create/update when adding/updating a document is 'a_certain_field'".


How am I supposed to proceed?


Thanks





Aucun commentaire:

Enregistrer un commentaire