How to design a basic schema in Document db(NoSQL)?
<p>I have a question how to validate basic JSON fields in document. I mean suppose one field required or not, I mean basically fields validation.</p>

<p>I know Document DB is schema less (NOSQL) but in Mongodb there is one option is there that is why i am asking.</p>

<p>For example in Mongodb we have option called is below code once.
<strong>"name": { type: String, required: true, unique: true } or
 { versionKey: false },{strict: false});</strong></p>

<p>This kind of schema validation in there in Document Db?</p>