Function connect

  • Acts as the entrypoint into the rest of the library. Connecting to the cluster and exposing the various services and features.

    Parameters

    • connStr: string

      The connection string to use to connect to the cluster.

    • Optional options: ConnectOptions

      Optional parameters for this operation.

    • Optional callback: NodeCallback<Cluster>

      A node-style callback to be invoked after execution.

    Returns Promise<Cluster>