Skip to content

js-data/js-data-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

00001f7 · Sep 22, 2018

History

60 Commits
Oct 20, 2016
Apr 30, 2016
Sep 22, 2018
May 24, 2017
May 25, 2017
Sep 22, 2018
Aug 21, 2016
Feb 27, 2016
Sep 22, 2018
Aug 23, 2016
Sep 22, 2018
Aug 18, 2017
Aug 18, 2017
Sep 22, 2018
Sep 22, 2018
Aug 18, 2017
May 25, 2017
Sep 22, 2018
Sep 22, 2018
Aug 18, 2017
Apr 30, 2016
Aug 18, 2017

Repository files navigation

js-data logo

js-data-mongodb

Slack NPM Tests Downloads Coverage

A MongoDB adapter for the JSData Node.js ORM.

Installation

npm install --save js-data@3 js-data-mongodb@2 mongodb@3 bson@3

Usage

import { MongoDBAdapter } from 'js-data-mongodb';

// Create an instance of MongoDBAdapter
const adapter = new MongoDBAdapter({
  uri: 'mongodb://localhost:27017'
});

// Other JSData setup hidden

// Register the adapter instance
store.registerAdapter('mongodb', adapter, { default: true });

JSData + MongoDB Tutorial

Start with the JSData + MongoDB tutorial or checkout the API Reference Documentation.

Need help?

Please post a question on Stack Overflow. This is the preferred method.

You can also chat with folks on the Slack Channel. If you end up getting your question answered, please still consider consider posting your question to Stack Overflow (then possibly answering it yourself). Thanks!

Want to contribute?

Awesome! You can get started over at the Contributing guide.

Thank you!

License

The MIT License (MIT)

Copyright (c) 2014-2017 js-data-mongodb project authors