|
|
@ -201,7 +201,8 @@ class BaseModelSqlv2 { |
|
|
|
sort?: string | string[]; |
|
|
|
sort?: string | string[]; |
|
|
|
fieldsSet?: Set<string>; |
|
|
|
fieldsSet?: Set<string>; |
|
|
|
} = {}, |
|
|
|
} = {}, |
|
|
|
ignoreViewFilterAndSort = false |
|
|
|
ignoreViewFilterAndSort = false, |
|
|
|
|
|
|
|
|
|
|
|
): Promise<any> { |
|
|
|
): Promise<any> { |
|
|
|
const { where, fields, ...rest } = this._getListArgs(args as any); |
|
|
|
const { where, fields, ...rest } = this._getListArgs(args as any); |
|
|
|
|
|
|
|
|
|
|
@ -286,6 +287,8 @@ class BaseModelSqlv2 { |
|
|
|
if (!ignoreViewFilterAndSort) applyPaginate(innerQb, rest); |
|
|
|
if (!ignoreViewFilterAndSort) applyPaginate(innerQb, rest); |
|
|
|
const proto = await this.getProto(); |
|
|
|
const proto = await this.getProto(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(wrapperQb.toQuery()) |
|
|
|
|
|
|
|
|
|
|
|
const data = await this.execAndParse(wrapperQb); |
|
|
|
const data = await this.execAndParse(wrapperQb); |
|
|
|
|
|
|
|
|
|
|
|
return data?.map((d) => { |
|
|
|
return data?.map((d) => { |
|
|
|