hapi-good-mongostore

0.4.0 • Public • Published

npm version CircleCI

hapi-good-mongostore

Simple write stream that facilitates writing to MongoDB

Prerequisites

node >= 4 This module requires nodejs v4 or above.

Getting started

    npm install hapi-good-mongostore

Usage

hapi-good-mongostore is a write stream use to write to MongoDB in batches.

API

GoodMongoStore(dbUrl, [options])
  • dbUrl - MongoDB connection url

  • options - object properties

Name Type Description
clientOptions object

opts from node-mongodb-native#connect-options

collectionName string

Collection name

insertOptions object

Durability of writes

batchSize number

The number of documents consumed before writing to MongoDB

Run tests

bash test.sh

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-good-mongostore

Weekly Downloads

0

Version

0.4.0

License

Apache-2.0

Last publish

Collaborators

  • stuplum
  • antony
  • pasupulaphani