findUnique
Find a single document by any field. Returns the latest version by timestamp.Parameters
| Parameter | Type | Description |
|---|---|---|
collection | string | Collection name |
where | object | Filter criteria |
Return Value
ReturnsT | null - the document if found, or null if not found.
findMany
Find multiple documents with filters and options.FindManyOptions
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return |
offset | number | Number of results to skip |
sort | object | Sorting configuration |