|
|
|
@ -3,11 +3,11 @@ import { isLinksOrLTAR, RelationTypes } from 'nocodb-sdk';
|
|
|
|
|
import { nocoExecute } from 'nc-help'; |
|
|
|
|
import { validatePayload } from 'src/helpers'; |
|
|
|
|
import type { LinkToAnotherRecordColumn } from '~/models'; |
|
|
|
|
import { Column, Model, Source, View } from '~/models'; |
|
|
|
|
import { DatasService } from '~/services/datas.service'; |
|
|
|
|
import { NcError } from '~/helpers/catchError'; |
|
|
|
|
import getAst from '~/helpers/getAst'; |
|
|
|
|
import { PagedResponseImpl } from '~/helpers/PagedResponse'; |
|
|
|
|
import { Column, Model, Source, View } from '~/models'; |
|
|
|
|
import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2'; |
|
|
|
|
|
|
|
|
|
@Injectable() |
|
|
|
@ -19,6 +19,7 @@ export class DataTableService {
|
|
|
|
|
modelId: string; |
|
|
|
|
query: any; |
|
|
|
|
viewId?: string; |
|
|
|
|
ignorePagination?: boolean; |
|
|
|
|
}) { |
|
|
|
|
const { model, view } = await this.getModelAndView(param); |
|
|
|
|
|
|
|
|
@ -27,6 +28,7 @@ export class DataTableService {
|
|
|
|
|
view, |
|
|
|
|
query: param.query, |
|
|
|
|
throwErrorIfInvalidParams: true, |
|
|
|
|
ignorePagination: param.ignorePagination, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|