New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mydoma/myd-provider

Package Overview
Dependencies
Maintainers
3
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@mydoma/myd-provider

MongoDB provider for all MyDoma Studio applications and microservices.

5.83.1
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

What is this repository for?

  • This repository is a complete MongoDB provider for MyDoma APIs and other projects

How do I get set up?

Install

npm i @mydoma/myd-provider

Initialise Myd-provider is basically a wrapper for a mongodb database. When you initialise, you need to pass in a connections string, and you can also set Mongo options.

const db = require('@mydoma/myd-provider')
const connection = 'mongodb://localhost:27071/myd-studio'
const options = {
  sslCA: certFileBuf
}
db.connect(connection, options).then(() =>
  console.log(`connected to ${dbHost}`)
)

###Using the provider Basically, you can call the provider's methods on any of its collections, but not every collection implements every method.

db.Product.duplicate(id)

Current implementation

Who do I talk to?

  • colleen@mydomastudio.com

FAQs

Package last updated on 22 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts