Skip to content

Commit c9be5a3

Browse files
committed
Destructure mongo options
1 parent cf0a4b2 commit c9be5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ export class MongoStorageAdapter {
206206
}
207207

208208
// Executs a count.
209-
count(className, query, mongoOptions) {
209+
count(className, query, { limit, skip, sort }) {
210210
return this.adaptiveCollection(className)
211-
.then(collection => collection.count(query, mongoOptions));
211+
.then(collection => collection.count(query, { limit, skip, sort }));
212212
}
213213

214214
get transform() {

0 commit comments

Comments
 (0)