MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / validate

Method validate

mongoengine/fields.py:902–904  ·  view source on GitHub ↗
(self, value, clean=True)

Source from the content-addressed store, hash-verified

900 return super().prepare_query_value(op, self.to_mongo(value))
901
902 def validate(self, value, clean=True):
903 if hasattr(value, "validate"):
904 value.validate(clean=clean)
905
906
907class ListField(ComplexBaseField):

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected