Setu-TS
    Preparing search index...

    Class MongoAdapter

    The Mongo adapter — a document-store backend over the native driver.

    Constructed by DatabasePlugin for the 'mongodb' arm, and also constructible directly by an application for the 'custom' arm.

    import { DatabasePlugin, MongoAdapter } from '@setu-ts/database-plugin';

    app.register(DatabasePlugin({
    type: 'mongodb',
    options: { url: 'mongodb://localhost:27017/mydb' },
    }));

    0.2.0

    Implements

    Index
    isHealthy?: () => Promise<boolean>

    The reachability probe (M95b §3.5), present only when the resolved client's db() facade can answer a command. A minimal injected client whose database facade omits command? leaves this unassigned, so the service reports hasReachabilityProbe: false — the adapter is honest about having no probe rather than failing readiness for a backend it never asked.

    transactionIsolationLevels: readonly TransactionIsolationLevel[] = []

    MongoDB snapshot isolation is not the portable serializable guarantee.