Type alias Params<Entity, AST, Scalars, P>

Params<Entity, AST, Scalars, P>: P extends Record<string, never> ? {
    __projection: "empty";
} : [Projection<Entity, AST>] extends [P] ? PartialDeep<GenerateModel<Entity, AST, Scalars, "relation">> & {
    __projection: "unknown";
} : P extends true ? GenerateModel<Entity, AST, Scalars, "relation"> & {
    __projection: "all";
} : DecorateModel<OmitNever<{ [ K in keyof P]: K extends keyof AST[Entity]["fields"] ? AST[Entity]["fields"][K] extends {
    astName: infer ASTName;
    type: infer Type;
} ? ASTName extends string ? P[K] extends true ? Type extends "scalar" ? Scalars[ASTName]["type"] : GenerateModel<ASTName, AST, Scalars, "relation"> : Params<ASTName, AST, Scalars, P[K]> : never : never : never }>, Entity, AST> & {
    __projection?: P;
}

Type Parameters

Generated using TypeDoc