def prepare_queryset_kwargs(self, field, value, negate):
        # Using <field>__exact causes mongoengine to generate a regular
        # expresison query, which we'd like to avoid.
        if negate:
            return {'%s__ne' % field: value}
        else:
            return {field: value}
dataset/ETHPy150Open closeio/flask-mongorest/flask_mongorest/operators.py/Exact.prepare_queryset_kwargs/original