def prepare_query_value(self, op, value):
        if op in UPDATE_OPERATORS:
            self.validate(value)
        return value
Prepare a value that is being used in a query for PyMongo.
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/base/fields.py/BaseField.prepare_query_value