I tried both ways, decorating the class property and alternatively using the code. In my understanding, when someone tries to insert or update and the required field value is null, an error should be raised. But this is not the case, the null value is inserted.
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb