Gathering detailed insights and metrics for @cylution/moleculer-db-adapter-mongoose
Gathering detailed insights and metrics for @cylution/moleculer-db-adapter-mongoose
npm install @cylution/moleculer-db-adapter-mongoose
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.4
Supply Chain
94.3
Quality
75.3
Maintenance
25
Vulnerability
98.9
License
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
moleculer-db-adapter-mongoose@0.9.3
Updated on Jul 15, 2023
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
4,951
Last Day
1
Last Week
2
Last Month
6
Last Year
472
MIT License
154 Stars
595 Commits
121 Forks
9 Watchers
30 Branches
48 Contributors
Updated on Feb 17, 2025
Minified
Minified + Gzipped
Latest Version
1.0.3-0.9.2-230305-01
Package Id
@cylution/moleculer-db-adapter-mongoose@1.0.3-0.9.2-230305-01
Unpacked Size
18.27 kB
Size
5.69 kB
File Count
6
NPM Version
8.19.3
Node Version
16.19.0
Published on
Mar 04, 2023
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-90.6%
6
Compared to previous month
Last Year
-58.9%
472
Compared to previous year
Mongoose adapter for Moleculer DB service
1$ npm install moleculer-db moleculer-db-adapter-mongoose mongoose --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://localhost/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://localhost/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-2022 MoleculerJS
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
15 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 8/10 approved changesets -- score normalized to 8
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
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 More