@userlab/dx
Version:
Build efficient GraphQL backend
8 lines (7 loc) • 334 B
TypeScript
import { FieldConfigMap } from '../types';
export declare const getSqlCondition: (table: string, fields: FieldConfigMap, condition?: {
[key: string]: any;
} | undefined) => string | null;
export declare const whereResolve: ({ fields }: {
fields: FieldConfigMap;
}) => (table: string, { where }: any, { user }: any) => string;