Skip to content

Context interface for database trigger callbacks DatabaseTriggerContext

Properties

PropertyTypeDescription
doc?Record<string, any>The document data for insert/update/validate operations.
docs?Record<string, any>[]The documents data for insert-many operations.
pipelines?Record<string, any>[]The aggregation pipelines for aggregate operations
query?Record<string, any>The query data for find/remove/count/distinct operations
queryResultanyThe result of the database operation (can be document, array of documents, number, or null)
update?Record<string, any>The update data for update operations