Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/js-data/js-data-mongodb
MongoDB adapter for js-data. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io
https://github.com/js-data/js-data-mongodb
mongodb nodejs orm
Last synced: about 2 months ago
JSON representation
MongoDB adapter for js-data. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io
- Host: GitHub
- URL: https://github.com/js-data/js-data-mongodb
- Owner: js-data
- License: mit
- Created: 2015-02-05T18:31:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-09T20:45:22.000Z (almost 5 years ago)
- Last Synced: 2024-10-14T02:48:30.026Z (3 months ago)
- Topics: mongodb, nodejs, orm
- Language: JavaScript
- Homepage:
- Size: 1.05 MB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# js-data-mongodb
[![Slack][1]][2]
[![NPM][3]][4]
[![Tests][5]][6]
[![Downloads][7]][8]
[![Coverage][9]][10]A MongoDB adapter for the [JSData Node.js ORM][11].
### Installation
npm install --save js-data@3 js-data-mongodb@2 mongodb@3 bson@3
### Usage
```js
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][12] or checkout the [API Reference Documentation][13].
### Need help?
Please [post a question][14] on Stack Overflow. **This is the preferred method.**
You can also chat with folks on the [Slack Channel][15]. 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][16].
Thank you!
### License
[The MIT License (MIT)][17]
Copyright (c) 2014-2017 [js-data-mongodb project authors][18]
[1]: http://slack.js-data.io/badge.svg
[2]: http://slack.js-data.io
[3]: https://img.shields.io/npm/v/js-data-mongodb.svg?style=flat
[4]: https://www.npmjs.org/package/js-data-mongodb
[5]: https://img.shields.io/circleci/project/js-data/js-data-mongodb.svg?style=flat
[6]: https://circleci.com/gh/js-data/js-data-mongodb
[7]: https://img.shields.io/npm/dm/js-data-mongodb.svg?style=flat
[8]: https://www.npmjs.org/package/js-data-mongodb
[9]: https://img.shields.io/codecov/c/github/js-data/js-data-mongodb.svg?style=flat
[10]: https://codecov.io/github/js-data/js-data-mongodb
[11]: http://www.js-data.io/
[12]: http://www.js-data.io/docs/js-data-mongodb
[13]: http://api.js-data.io/js-data-mongodb
[14]: http://stackoverflow.com/questions/tagged/jsdata
[15]: http://slack.js-data.io/
[16]: https://github.com/js-data/js-data-mongodb/blob/master/.github/CONTRIBUTING.md
[17]: https://github.com/js-data/js-data-mongodb/blob/master/LICENSE
[18]: https://github.com/js-data/js-data-mongodb/blob/master/AUTHORS