move transformWhere into mongo adapter
This commit is contained in:
@@ -206,9 +206,9 @@ export class MongoStorageAdapter {
|
||||
}
|
||||
|
||||
// Executs a count.
|
||||
count(className, query) {
|
||||
count(className, query, schema) {
|
||||
return this.adaptiveCollection(className)
|
||||
.then(collection => collection.count(query));
|
||||
.then(collection => collection.count(transform.transformWhere(className, query, schema)));
|
||||
}
|
||||
|
||||
get transform() {
|
||||
|
||||
Reference in New Issue
Block a user