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