Type Alias ChangeStreamEvents<TSchema, TChange>

ChangeStreamEvents<TSchema, TChange>: {
    change(change: TChange): void;
    close(): void;
    end(): void;
    error(error: Error): void;
    init(response: any): void;
    more(response?: any): void;
    response(): void;
    resumeTokenChanged(token: unknown): void;
}

Type Parameters

Type declaration

  • change:function
  • close:function
    • Returns void

      Note that the close event is currently emitted whenever the internal ChangeStreamCursor instance is closed, which can occur multiple times for a given ChangeStream instance.

      TODO(NODE-6434): address this issue in NODE-6434

  • end:function
  • error:function
  • init:function
  • more:function
  • response:function
  • resumeTokenChanged:function