Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MongoClient

Index

Constructors

Methods

Constructors

constructor

Methods

connect

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    • url: string

      The connection URI string.

    • callback: MongoCallback<Db>

      The command result callback.

    Returns void

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    • url: string

      The connection URI string.

    • Optional options: MongoClientOptions

      Optional settings.

    Returns Promise<Db>

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    Returns void

Static connect

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    • url: string

      The connection URI string.

    • callback: MongoCallback<Db>

      The command result callback.

    Returns void

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    • url: string

      The connection URI string.

    • Optional options: MongoClientOptions

      Optional settings.

    Returns Promise<Db>

  • Connect to MongoDB using a url as documented at docs.mongodb.org/manual/reference/connection-string/ Note that for replicasets the replicaSet query parameter is required in the 2.0 driver.

    Parameters

    Returns void

Generated using TypeDoc