Movatterモバイル変換


[0]ホーム

URL:


⚠️

Security Update: npm classic token creation is now disabled. Existing classic tokens will be revoked onNovember 19, 2025. Migrate to trusted publishing or granular access tokens to avoid disruption.Learn more.

js-data-mongodb
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published
js-data logo

js-data-mongodb

SlackNPMTestsDownloadsCoverage

A MongoDB adapter for theJSData 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 theJSData + MongoDB tutorial or checkout theAPI Reference Documentation.

Need help?

Pleasepost a question on Stack Overflow.This is the preferred method.

You can also chat with folks on theSlack Channel. If you end up gettingyour question answered, please still consider consider posting your question toStack Overflow (then possibly answering it yourself). Thanks!

Want to contribute?

Awesome! You can get started over at theContributing guide.

Thank you!

License

The MIT License (MIT)

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

Package Sidebar

Install

npm i js-data-mongodb

Weekly Downloads

9

Version

2.0.0

License

MIT

Unpacked Size

131 kB

Total Files

10

Last publish

Collaborators

  • coryrobinson42
  • jdobry

[8]ページ先頭

©2009-2025 Movatter.jp