shyft
Version:
Model driven GraphQL API framework
14 lines (13 loc) • 469 B
TypeScript
import { Entity } from './entity/Entity';
export declare type FilterType = [string, any];
export declare type OrderType = {
attribute: string;
direction: 'ASC' | 'DESC';
};
export declare type CursorType = {
[key: string]: FilterType[];
};
export declare const processCursor: (entity?: Entity, cursor?: CursorType, orderBy?: OrderType[], reverse?: boolean) => any;
export declare const processCursors: (entity?: Entity, args?: any) => {
$and: any[];
};