Makes sure pointer includes are interpolated as get (#2747)

* test for repro #2005

* Adds ability to override CLP op from RestQuery.execute

* nits
This commit is contained in:
Florent Vilmart
2016-09-24 14:54:31 -04:00
committed by GitHub
parent 9260e8b05f
commit b5af4d017c
3 changed files with 44 additions and 12 deletions

View File

@@ -721,11 +721,12 @@ DatabaseController.prototype.find = function(className, query, {
acl,
sort = {},
count,
keys
keys,
op
} = {}) {
let isMaster = acl === undefined;
let aclGroup = acl || [];
let op = typeof query.objectId == 'string' && Object.keys(query).length === 1 ? 'get' : 'find';
op = op || (typeof query.objectId == 'string' && Object.keys(query).length === 1 ? 'get' : 'find');
let classExists = true;
return this.loadSchema()
.then(schemaController => {