Type alias CommandEventMap
CommandEventMap: {
commandFailed: ((event) => void);
commandStarted: ((event) => void);
commandSucceeded: ((event) => void);
commandWarnings: ((event) => void);
}
Type declaration
commandFailed: ((event) => void)
- (event): void
Returns void
commandStarted: ((event) => void)
- (event): void
Returns void
commandSucceeded: ((event) => void)
- (event): void
Returns void
commandWarnings: ((event) => void)
- (event): void
Returns void
The events emitted by the DataAPIClient. These events are emitted at various stages of the command's lifecycle. Intended for use for monitoring and logging purposes.
Note that these emit real commands, not any abstracted commands like "insertMany" or "updateMany", which may be split into multiple of those commands under the hood.