Restores ability to include non pointer keys (#2263)
- Matches the behaviour on parse.com - fixes #2262
This commit is contained in:
@@ -527,14 +527,14 @@ function findPointers(object, path) {
|
||||
}
|
||||
|
||||
if (typeof object !== 'object') {
|
||||
throw new Parse.Error(Parse.Error.INVALID_QUERY, 'can only include pointer fields');
|
||||
return [];
|
||||
}
|
||||
|
||||
if (path.length == 0) {
|
||||
if (object.__type == 'Pointer') {
|
||||
return [object];
|
||||
}
|
||||
throw new Parse.Error(Parse.Error.INVALID_QUERY, 'can only include pointer fields');
|
||||
return [];
|
||||
}
|
||||
|
||||
var subobject = object[path[0]];
|
||||
|
||||
Reference in New Issue
Block a user