• Basic MongoDB Connection string

    Parameters

    • host: string

      the host ip or an list of hosts

    • port: undefined | number

      the host port or undefined if "host" is an list of hosts

    • dbName: string

      the database to add to the uri (in mongodb its the auth database, in mongoose its the default database for models)

    • Optional query: string[]

      extra uri-query options (joined with "&")

    Returns string

Generated using TypeDoc