Skip to main content

Search in a collection

GET 

/api/staff/search/:collection/

This endpoint allows staff or admin users to search within a specified collection. The search can be filtered by key and query parameters.

  • key: The field to search by (e.g., _id, referrer, all, etc.).
  • q: The query value to match against the specified key.
  • order: The sort order of the results (asc for ascending, desc for descending).
  • limit: The maximum number of results to return.
  • type: The type of comparison (e.g., gt for greater than).

Request

Responses