Find
AI-generatedSummary
Find documents matching a filter in a specified collection, optionally with pagination and projection.
Inputs
- collection (required) — Name of the MongoDB collection to query.
- filter — JSON filter to apply to match documents.
- options — Additional query options such as limit, skip, sort, projection, and conversion settings.
Output shape
an array of result objects
Each result object includes a 'json' field containing the matched documents; optional fields like limit, skip, sort, and projection affect the returned set.
Examples
Example 1: Retrieve up to 5 active users sorted by creation date
Collection: users; Filter: {"status":"active"}; Options: {"limit":5,"sort":{"createdAt":-1}}
