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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user