Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Latest commit

 

History

History

emeralt-database-mongodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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
}