Support include('*') Query (#4947)
This commit is contained in:
@@ -114,6 +114,10 @@ function RestQuery(config, auth, className, restWhere = {}, restOptions = {}, cl
|
||||
break;
|
||||
case 'include': {
|
||||
const paths = restOptions.include.split(',');
|
||||
if (paths.includes('*')) {
|
||||
this.includeAll = true;
|
||||
break;
|
||||
}
|
||||
// Load the existing includes (from keys)
|
||||
const pathSet = paths.reduce((memo, path) => {
|
||||
// Split each paths on . (a.b.c -> [a,b,c])
|
||||
|
||||
Reference in New Issue
Block a user