UNPKG

@directus/api

Version:

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

10 lines (9 loc) 470 B
import type { Accountability, SchemaOverview } from '@directus/types'; /** * Build a sanitized query object from a tool's args payload. * - Ensures fields defaults to '*' when not provided * - Returns an empty object when no args.query is present */ export declare function buildSanitizedQueryFromArgs<T extends { query?: Record<string, any> | undefined; }>(args: T, schema: SchemaOverview, accountability?: Accountability | null): Promise<Record<string, any>>;