Type alias WithMongoClientAction<TResult>

WithMongoClientAction<TResult>: ((client, db) => Promise<TResult>)

Type Parameters

  • TResult extends any = any

Type declaration

    • (client, db): Promise<TResult>
    • Action for 'withClient()' method of 'MongoDatabase' class.

      Parameters

      • client: MongoDBClient

        The open client.

      • db: MongoDb

        The underlying default database instance.

      Returns Promise<TResult>

      The promise with the result.

Generated using TypeDoc