- Notifications
You must be signed in to change notification settings - Fork4
MongoDB adapter for js-data. Main Site:http://js-data.io, API Reference Docs:http://api.js-data.io
License
NotificationsYou must be signed in to change notification settings
js-data/js-data-mongodb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
MongoDB adapter forjs-data.
npm install --save js-data js-data-mongodb.
varJSData=require('js-data');varDSMongoDBAdapter=require('js-data-mongodb');varstore=newJSData.DS();varadapter=newDSMongoDBAdapter('mongodb://localhost:27017');// "store" will now use the MongoDB adapter for all async operationsstore.registerAdapter('mongodb',adapter,{default:true});varUser=store.defineResource({// Why couldn't Mongo just use "id"?idAttribute:'_id',// map this resource to a collection, default is Resource#nametable:'users'});
Support questions are handled viaStackOverflow,Slack, and theMailing List. Ask your questions there.
When submitting bug reports on GitHub, please include as much detail as possibleto make debugging quick and easy.
SeeCONTRIBUTING.md.
The MIT License (MIT)
SeeLICENSE.
About
MongoDB adapter for js-data. Main Site:http://js-data.io, API Reference Docs:http://api.js-data.io
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
