Setu-TS
    Preparing search index...

    Interface IMongoDatabase

    A structural subset of the driver Database — what the collection resolver reads.

    0.2.0

    interface IMongoDatabase {
        collection(name: string): IMongoCollection;
        command?(command: Record<string, unknown>): Promise<unknown>;
    }
    Index
    • Runs a database command against this database (optional, M95b).

      The reachability probe sends { ping: 1 } through it — the one cheap liveness round trip the driver exposes. The real driver's Db.command(command: Document, options?): Promise<Document> is assignable to this shape, pinned by the committed static type fixture; an injected facade that omits the member simply has no probe, and the adapter reports its absence rather than failing readiness for a backend it never asked.

      Parameters

      • command: Record<string, unknown>

        The command document (for example { ping: 1 })

      Returns Promise<unknown>

      The driver's reply, unread by the probe