Gathering detailed insights and metrics for moleculer-db-adapter-mongoose
Gathering detailed insights and metrics for moleculer-db-adapter-mongoose
Gathering detailed insights and metrics for moleculer-db-adapter-mongoose
Gathering detailed insights and metrics for moleculer-db-adapter-mongoose
@cylution/moleculer-db-adapter-mongoose
Mongoose adapter for Moleculer DB service
moleculer-db-adapter-mongoose-action
add create wih transaction function
tb-moleculer-db-adapter-mongoose
- `npm install mongoose --save` - `npm install tb-moleculer-db-adapter-mongoose --save`
moleculer-sf-mixin-db
> mongoose adapter for `moleculer-sf` > > export as plugin of [moleculer-sf](https://www.npmjs.com/package/moleculer-sf)
🔋 Database access service mixins for Moleculer
npm install moleculer-db-adapter-mongoose
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69.1
Supply Chain
93.3
Quality
77.5
Maintenance
100
Vulnerability
97.9
License
moleculer-db@0.8.29
Updated on Apr 29, 2025
moleculer-db@0.8.28
Updated on Feb 17, 2025
moleculer-db-adapter-mongoose@0.10.0
Updated on Jan 29, 2025
moleculer-db@0.8.26
Updated on Aug 24, 2024
moleculer-db@0.8.25
Updated on Nov 12, 2023
moleculer-db@0.8.24
Updated on Jul 15, 2023
JavaScript (100%)
Total Downloads
815,116
Last Day
161
Last Week
1,581
Last Month
8,734
Last Year
97,753
MIT License
155 Stars
598 Commits
122 Forks
9 Watchers
30 Branches
48 Contributors
Updated on May 25, 2025
Minified
Minified + Gzipped
Latest Version
0.10.1
Package Id
moleculer-db-adapter-mongoose@0.10.1
Unpacked Size
72.25 kB
Size
15.12 kB
File Count
19
NPM Version
lerna/4.0.0/node@v12.22.12+x64 (win32)
Node Version
12.22.12
Published on
Apr 29, 2025
Cumulative downloads
Total Downloads
Mongoose adapter for Moleculer DB service
1$ npm install moleculer-db moleculer-db-adapter-mongoose mongoose@6.5.4 --save
1"use strict"; 2 3const { ServiceBroker } = require("moleculer"); 4const DbService = require("moleculer-db"); 5const MongooseAdapter = require("moleculer-db-adapter-mongoose"); 6const mongoose = require("mongoose"); 7 8const broker = new ServiceBroker(); 9 10// Create a Mongoose service for `post` entities 11broker.createService({ 12 name: "posts", 13 mixins: [DbService], 14 adapter: new MongooseAdapter("mongodb://127.0.0.1/moleculer-demo"), 15 model: mongoose.model("Post", mongoose.Schema({ 16 title: { type: String }, 17 content: { type: String }, 18 votes: { type: Number, default: 0} 19 })) 20}); 21 22 23broker.start() 24// Create a new post 25.then(() => broker.call("posts.create", { 26 title: "My first post", 27 content: "Lorem ipsum...", 28 votes: 0 29})) 30 31// Get all posts 32.then(() => broker.call("posts.find").then(console.log));
Example with connection URI
1new MongooseAdapter("mongodb://127.0.0.1/moleculer-db")
Example with URI and options
1new MongooseAdapter("mongodb://db-server-hostname/my-db", {
2 user: process.env.MONGO_USERNAME,
3 pass: process.env.MONGO_PASSWORD,
4 keepAlive: true
5})
$ npm test
In development with watching
$ npm run ci
The project is available under the MIT license.
Copyright (c) 2016-2024 MoleculerJS
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 8/11 approved changesets -- score normalized to 7
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
44 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
50.5%
161
Compared to previous day
Last Week
-37.9%
1,581
Compared to previous week
Last Month
6.6%
8,734
Compared to previous month
Last Year
-3%
97,753
Compared to previous year