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

A document got inserted into the collection.

Type Parameters

Type declaration

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

    A document that contains the _id of the inserted document.

  • fullDocument: T

    The new document created by the operation

  • ns: DocumentNamespace

    The namespace (database and collection) of the document got inserted into.

Generated using TypeDoc