![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
mongodb-data-service
Advanced tools
MongoDB Data Service
MongoDB Data Service: an API on top of the MongoDB Node Driver
npm install --save mongodb-data-service
const { connect } = require('mongodb-data-service');
// ...
const service = await connect({
driverUrl: 'mongodb://localhost:27018/data-service',
});
// Get information for a collection.
service.collection('database.collection', {}, (error, result) => {
assert.equal(null, error);
});
// Get a document count.
service.count('database.collection', { a: 1 }, {}, (error, count) => {
assert.equal(null, error);
});
// Get information for a database.
service.database('database', {}, (error, result) => {
assert.equal(null, error);
});
// Find documents in a collection.
service.find('database.collection', { a: 1 }, {}, (error, documents) => {
assert.equal(null, error);
});
// Get a result for a RESTful endpoint.
service.get('/collection/database.test', {}, (error, result) => {
assert.equal(null, error);
});
// Get instance details.
service.instance({}, (error, result) => {
assert.equal(null, error);
});
// Get a sample stream of documents from a collection.
service.sample('database.collection', {});
collections
[
{
_id: 'admin.system.version',
name: 'system.version',
database: 'admin',
readonly: false,
collation: null,
type: 'collection',
view_on: undefined,
pipeline: undefined,
},
{
_id: 'config.system.sessions',
name: 'system.sessions',
database: 'config',
readonly: false,
collation: null,
type: 'collection',
view_on: undefined,
pipeline: undefined,
},
{
_id: 'data-service.test',
name: 'test',
database: 'data-service',
readonly: false,
collation: null,
type: 'collection',
view_on: undefined,
pipeline: undefined,
},
{
_id: 'data-service.system.views',
name: 'system.views',
database: 'data-service',
readonly: false,
collation: null,
type: 'collection',
view_on: undefined,
pipeline: undefined,
},
{
_id: 'data-service.myView',
name: 'myView',
database: 'data-service',
readonly: true,
collation: null,
type: 'view',
view_on: 'test',
pipeline: [{ $project: { a: 0 } }],
},
{
_id: 'local.startup_log',
name: 'startup_log',
database: 'local',
readonly: false,
collation: null,
type: 'collection',
view_on: undefined,
pipeline: undefined,
},
];
npm test
FAQs
MongoDB Data Service
The npm package mongodb-data-service receives a total of 262 weekly downloads. As such, mongodb-data-service popularity was classified as not popular.
We found that mongodb-data-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.