Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@clearroad/api-storage-mongodb
Advanced tools
Changelog
0.1.0 (2019-01-23)
<a name="0.1.0-alpha.9"></a>
Readme
Note: 5 databases will be created to store the data, all prefixed with the database
value (see below).
Make sure you use credentials that have the rights to create databases.
npm install @clearroad/api-storage-mongodb
Using with es6 / TypeScript
import { ClearRoad } from '@clearroad/api';
import storage from '@clearroad/api-storage-mongodb';
Using with require
const ClearRoad = require('@clearroad/api').ClearRoad;
const storage = require('@clearroad/api-storage-mongodb').default;
ClearRoad
instance:const options = {
localStorage: {
type: storage,
url: 'mongodb://user:password@host.com:27017',
database: 'MyDatabase'
}
};
const cr = new ClearRoad('url', 'accessToken', options);
Property | Type | Description | Required |
---|---|---|---|
localStorage.type | string | Connector type. Use mongodb | Yes |
localStorage.url | string | Database url connection string | Yes |
localStorage.database | string | Database name | Yes |
localStorage.clientOptions | MongoClientOptions (see connect options) | Additional configuration for connection | No |
localStorage.documentsCollectionName | string | Database collection name to storage all documents. Default is Documents | No |
localStorage.attachmentsCollectionName | string | Database table name to storage all attachments. Default is Attachments | No |
localStorage.timestamps | boolean | Add createdAt and updateAt fields on each row. Default is true | No |
FAQs
ClearRoad API mongodb Connector
We found that @clearroad/api-storage-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).