Function createGetMongoDatabaseOptionsFunc

  • Creates a function, that returns the options for a 'MongoDatabase' instance, which are stored in environment variables:

    • MONGO{name}_DB => the name of the default database
    • MONGO{name}_URL => (optional) the URL to the connection; default: 'mongodb://localhost:27017'

    Parameters

    • name: string

      The name (or category) of the Mongo DB settings.

    Returns GetMongoDatabaseOptions

    The new function.

Generated using TypeDoc