## providers.testing.new_mock_dao_class()

<span id="hexkit.providers.testing.new_mock_dao_class"></span>


Produce a mock DAO for the given DTO model and ID field.


Usage

``` python
providers.testing.new_mock_dao_class(
    *,
    dto_model,
    id_field,
    handle_mql=True,
)
```


If `handle_mql` is True, the DAO will attempt to resolve query mappings that use MongoDB query language predicates (e.g. \$ne, \$in, \$ge, etc.). Not all MQL operators are supported. Please see `SUPPORTED_MQL_OPERATORS` for a complete list of the currently supported MQL operators.
