UNPKG

@akumzy/gri-prisma-select

Version:

Generate Prisma select object from GraphQL Resolve Info.

15 lines 434 B
import { GraphQLResolveInfo } from "graphql"; export declare type ParsedResult = { select: { [key: string]: true | ParsedResult; }; where?: any; take?: number; skip?: number; }; declare type ParseQueryOptions = { notAllowed?: string[]; }; export declare function toPrismaSelect(info: GraphQLResolveInfo, options?: ParseQueryOptions): Promise<{}>; export {}; //# sourceMappingURL=toPrismaSelect.d.ts.map