Destructure mongo options

This commit is contained in:
Drew Gross
2016-05-23 20:07:16 -07:00
parent cf0a4b246f
commit c9be5a3aac

View File

@@ -206,9 +206,9 @@ export class MongoStorageAdapter {
} }
// Executs a count. // Executs a count.
count(className, query, mongoOptions) { count(className, query, { limit, skip, sort }) {
return this.adaptiveCollection(className) return this.adaptiveCollection(className)
.then(collection => collection.count(query, mongoOptions)); .then(collection => collection.count(query, { limit, skip, sort }));
} }
get transform() { get transform() {