Options
All
  • Public
  • Public/Protected
  • All
Menu

Mongo module.

Provides a shallow interface to the underlying mongoose library, available as the mongoose property.

Hierarchy

  • Mongo

Index

Properties

Constructors

Methods

Properties

mongoose: __module

Mongoose instance. See Mongoose#API for details on its API.

Constructors

  • Instantiate the Mongo module.

    Please view mongoose#connect for all allowed configuration options. These options should be set in the cog.json file.

    The defaults if not specifed are:

    {
    "mongo": {
    "host": "localhost",
    "port": 27017,
    "db": "cais"
    }
    }

    Parameters

    • io: Io

      Io instance

    Returns Mongo

Methods

  • disconnect(): Promise<void>

Generated using TypeDoc