Move query validation out of mongo adapter

This commit is contained in:
Drew Gross
2016-05-18 18:10:57 -07:00
parent 15fc186a51
commit 643bdc8227
3 changed files with 32 additions and 34 deletions

View File

@@ -185,7 +185,6 @@ export class MongoStorageAdapter {
deleteObjectsByQuery(className, query, validate, schema) {
return this.adaptiveCollection(className)
.then(collection => {
transform.validateQuery(query);
let mongoWhere = transform.transformWhere(className, query, schema);
return collection.deleteMany(mongoWhere)
})