@emeralt/database-mongodb

0.13.0 • Public • Published

@emeralt/database-mongodb

Emeralt database plugin to store packages in MongoDB

Install

Using npm:

npm install @emeralt/database-mongodb

or using yarn:

yarn add @emeralt/database-mongodb

Usage

new EmeraltDatabaseMongoDB(options)

Options

type Options = {
  // mongodb connection URI
  uri?: string

  // indexing configuration
  // by default, indexing is enabled (indexing property is undefined)
  // but it can be disabled explicitly by setting indexing to false
  indexing?:
    | {
        metadatas: boolean
        versions: boolean
        options?: IndexOptions
      }
    | false
}

Readme

Keywords

none

Package Sidebar

Install

npm i @emeralt/database-mongodb

Weekly Downloads

0

Version

0.13.0

License

MIT

Unpacked Size

9.46 kB

Total Files

7

Last publish

Collaborators

  • stackdumper