mongoengine
mongoengine copied to clipboard
Bulk insert not validating document schema
class Post:
author = ListField(CustomDictField())
Post.objects.insert([Post(author={"a": 1})])
This will insert a dict value to author field in document
Any update on this? Using ClassName.objects.insert() does not validate 'required' fields as well. How to fix that?
Any update on this? Using
ClassName.objects.insert()does not validate 'required' fields as well. How to fix that?
I do data validating and type casting by myself, since validation feature in mongoengine is not consistent.