Class MongoClient

Hierarchy

  • MongoClient

Constructors

Properties

config: MongoClientConfig
connectionPool: MongoConnectionPool
inCloseProcedure: boolean = false
serializer: BSONBinarySerializer = mongoBinarySerializer

Methods

  • Type Parameters

    • T extends Command<T>

    Parameters

    • command: T

    Returns Promise<ReturnType<T["execute"]>>

  • Returns an existing or new connection, that needs to be released once done using it.

    Parameters

    • request: ConnectionRequest = {}
    • Optional transaction: MongoDatabaseTransaction

    Returns Promise<MongoConnection>

Generated using TypeDoc