@fdebijl/mog
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -80,3 +80,3 @@ "use strict"; | ||
const collection = (_a = options.collection) !== null && _a !== void 0 ? _a : this.collection; | ||
return this.db.collection(collection).find(query).toArray(); | ||
return this.db.collection(collection).find(query, options).toArray(); | ||
} | ||
@@ -90,3 +90,3 @@ /** | ||
const collection = (_a = options.collection) !== null && _a !== void 0 ? _a : this.collection; | ||
return this.db.collection(collection).find(query); | ||
return this.db.collection(collection).find(query, options); | ||
} | ||
@@ -93,0 +93,0 @@ /** |
{ | ||
"name": "@fdebijl/mog", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Opionated mini-ODM and collection of MongoDB utils 🔧", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
17530