Setu-TS
    Preparing search index...

    Interface IMongoCollectionFindOneAndUpdateOptions

    The native driver findOneAndUpdate options the adapter passes through.

    0.2.0

    interface IMongoCollectionFindOneAndUpdateOptions {
        returnDocument: "before" | "after";
        session?: IMongoSession;
    }
    Index
    returnDocument: "before" | "after"

    Returns the updated document (rather than the original).

    session?: IMongoSession

    The session a transaction-scoped operation runs under.