Skip to content

Filters

In this guide, we'll explain how to use the $eq, $ilike, $in, and $not filters in queries to enhance your data retrieval capabilities.

Fields

FilterDescriptionExample URL Parameter
$eqMatches documents where the value of a field equals the specified value.filter.name=$eq:John retrieves documents where the name field is exactly "John".
$ilikePerforms case-insensitive pattern matching.filter.name=$ilike:john retrieves documents where the name field contains "john" (case-insensitive).
$inMatches documents where the value of a field is within a specified array of values.filter.status=$in:active,pending retrieves documents where the status field is either "active" or "pending".
$notMatches documents where the value of a field does not equal the specified value.filter.status=$not:inactive retrieves documents where the status field is not "inactive".

Example Request

http
GET /crops?filter.name=$eq:C