|
|
@ -1977,10 +1977,12 @@ class BaseModelSql extends BaseModel { |
|
|
|
limit, |
|
|
|
limit, |
|
|
|
offset, |
|
|
|
offset, |
|
|
|
conditionGraph, |
|
|
|
conditionGraph, |
|
|
|
sort, |
|
|
|
sort |
|
|
|
...restArgs |
|
|
|
// ...restArgs
|
|
|
|
} = this._getChildListArgs(rest); |
|
|
|
} = this.dbModels[child]._getChildListArgs(rest); |
|
|
|
let { fields } = restArgs; |
|
|
|
// let { fields } = restArgs;
|
|
|
|
|
|
|
|
// todo: get only required fields
|
|
|
|
|
|
|
|
let fields = '*'; |
|
|
|
|
|
|
|
|
|
|
|
const { cn } = this.hasManyRelations.find(({ tn }) => tn === child) || {}; |
|
|
|
const { cn } = this.hasManyRelations.find(({ tn }) => tn === child) || {}; |
|
|
|
|
|
|
|
|
|
|
|