Type alias ReplaceEvent<T>

ReplaceEvent<T>: {
    documentKey: DocumentKey<T["_id"]>;
    fullDocument: T;
    ns: DocumentNamespace;
} & BaseChangeEvent<"replace">

A document got replaced in the collection.

Type Parameters

Type declaration

  • documentKey: DocumentKey<T["_id"]>

    A document that contains the _id of the replaced document.

  • fullDocument: T

    The document after the insert of the replacement document.

  • ns: DocumentNamespace

    The namespace (database and collection) of the document got replaced within.

Generated using TypeDoc