Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

 
 

Repository files navigation

js-data logo

js-data-mongodb

Slack Statusnpm versionCircle CInpm downloadsCoverage StatusCodacy

MongoDB adapter forjs-data.

Table of contents

Quick Start

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'});

Documentation

API Reference

Support

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.

Community

Contributing

SeeCONTRIBUTING.md.

License

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

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp