Create index (synchronous)
Optionaloptions: { unique?: boolean }Create index (async)
Optionaloptions: { unique?: boolean }Deserialize collection from persistence
Drop index
Get all documents (used for serialization)
Get all indices
Get performance metrics for this collection
Get performance report
Get collection statistics
Serialize collection for persistence
Set the change event callback (used by Monarch for change streams)
Update documents matching the query with the provided changes Creates new document instances instead of mutating existing ones to minimize side effects
Clear all documents and indices