Skip to main content
Every property decorated with @FilterableField becomes an optional equality query parameter. Multiple parameters are combined with AND.
todo-item.dto.ts
This produces the service filter equivalent to:
The field type controls query-string conversion and validation. For example, completed=false becomes the boolean false, and a numeric field is converted to a number.

Required and filter-only fields

tenantId must be supplied to endpoints that use this generated filter. ownerId can be used in a query but is excluded from response serialization.

Defaults and disabling filters

Set a filter on @QueryOptions or the endpoint definition to scope every collection request:
disableFilter removes generated filter query parameters from the read collection endpoint. The CSV export endpoint still exposes its filter parameters, and authorization filters are still applied by the server.

Search terms

Set enableSearch: true to expose a free-form query parameter. The core query service does not interpret this value automatically; use a BeforeQueryMany hook or a custom service to translate it into a data-source filter.
See hooks for a complete query hook example.