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

mongodb-utils

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-utils - npm Package Compare versions

Comparing version

to
1.1.2

2

lib/index.js

@@ -47,3 +47,3 @@ const { ObjectID, Collection } = require('mongodb')

find: function (query, options) {
const cursor = mongoCollection.find(query)
const cursor = mongoCollection.find(getQueryFromArguments(query))

@@ -50,0 +50,0 @@ options = options || {}

{
"name": "mongodb-utils",
"version": "1.1.1",
"version": "1.1.2",
"description": "Utils for mongodb for nodejs",

@@ -5,0 +5,0 @@ "main": "lib/",

@@ -26,6 +26,6 @@ # mongodb-utils

// We can now access to mongodb-utils method from .utils
const user = await mongoUtils.utils.get({ usermane: 'terrajs' })
const user = await collection.utils.get({ usermane: 'terrajs' })
```
## Utils
## Methods

@@ -35,3 +35,3 @@ ### get

```js
get(query = { key: value } || string || ObjectID, fields = {}): Promise<doc>
get(query = { key: value } || string || ObjectID, [fields]): Promise<doc>
```

@@ -38,0 +38,0 @@