Generated API - Filtering
The generated API comes with inbuilt support for filtering.
Filtering uses the
where parameter to define filters. It can be used to filter on record properties (such as a user's email address) or related record properties (such as a user's top 10 most recent post titles).
where parameter is available only on endpoints and queries that return a list of items.
Filter conditions and operators
where parameter supports the following operators:
Searchable flag in the entity field settings determines whether the record can be included in a search. The flag is activated by default.
To find out more about filters and operators, we recommend reading the Prisma Client API reference
The following example gets all posts where the title includes the text “Node.js”
curl -X 'GET' \
-H 'accept: application/json'