UNPKG

@algochad/prisma-core

Version:

A comprehensive NestJS library that provides EF-Core-like operations using Prisma and GraphQL. Features LINQ-style query builders, advanced data manipulation, GraphQL integration with genql, and a unified API for both Prisma and GraphQL operations. Includ

16 lines (15 loc) 545 B
export interface ILinqContext { [key: string]: any; } export declare class LinqQueryContext { private context; constructor(context?: ILinqContext); setVariable(name: string, value: any): void; getVariable(name: string): any; parseLambdaWithContext(lambdaFn: Function): any; private parseWithVariableSubstitution; static fromScope(variables: Record<string, any>): LinqQueryContext; } export declare function withContext(variables: Record<string, any>): { where: <T>(predicate: (item: T) => boolean) => any; };