executeUnique
Find a single document by any field. Returns the latest version by timestamp.TypeScript
Return Value
ReturnsT | null - the document if found, or null if not found.
execute (Find Many)
Find multiple documents with filters and options.TypeScript
QueryResponse
| Field | Type | Description |
|---|---|---|
records | T[] | Array of matching documents |
total | number | Total count of matching documents |
error | string | Error message if query failed |
count
Count documents matching a filter.TypeScript
Examples
Find by ID
TypeScript
Find with Pagination
TypeScript
Select Specific Fields
TypeScript
Next Steps
Update
Update existing documents
Query Builder
Complex queries with operators