Iam having a cosmos db collection with documents, now what I want is when I create a new document in that collection (iam using .net document DB API), can I validate some values. E.g
My document has a field Name and I want that only Peter or John should be inserted. Does there exist a mechanism in cosmosdb so that I can do such validations or can I do them only from the application code?