UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

12 lines (11 loc) 526 B
import type { AbstractServiceOptions, Accountability, Query, SchemaOverview } from '@directus/types'; import type { Knex } from 'knex'; export declare class MetaService { knex: Knex; accountability: Accountability | null; schema: SchemaOverview; constructor(options: AbstractServiceOptions); getMetaForQuery(collection: string, query: any): Promise<Record<string, any> | undefined>; totalCount(collection: string): Promise<number>; filterCount(collection: string, query: Query): Promise<number>; }