graphql-composer-typeorm
Version:
TypeORM plugin for graphql-composer-decorators
16 lines (15 loc) • 608 B
TypeScript
import { ClassType, Context, InputType } from "graphql-composer";
export declare class Parser<Type extends ClassType> {
private _classType;
private _args;
private _computedArgs;
get classType(): Type;
constructor(classType: Type, args: () => InputType);
private get computedArgs();
getRelationPath(item: string): string;
buildQuery(ctx: Context): Promise<import("typeorm").SelectQueryBuilder<InstanceType<Type>>>;
private getRelations;
private parseWhereToRelations;
private parseSelectionsToRelations;
static unwrapModifiedType<T = any>(fieldType: T): any;
}