@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
16 lines (15 loc) • 325 B
TypeScript
import type { Query } from '@directus/types';
/**
* Converts the passed Query object into a unique list of path arrays, for example:
*
* ```
* [
* ['author', 'age'],
* ['category']
* ]
* ```
*/
export declare function extractPathsFromQuery(query: Query): {
paths: string[][];
readOnlyPaths: string[][];
};