Type alias GenerateModel<Entity, AST, Scalars, ExcludedType>
Generate
Model
<Entity, AST, Scalars, ExcludedType>: DecorateModel<OmitNever<{ [ Field in keyof AST[Entity]["fields"]]: AST[Entity]["fields"][Field] extends { astName
: infer ASTName
; type
: infer Type
; } ? ASTName extends string ? Type extends ExcludedType ? never : Type extends "scalar" ? Scalars[ASTName]["type"] : GenerateModel<ASTName, AST, Scalars, ExcludedType> : never : never }>, Entity, AST>
Type Parameters
-
Entity extends string
-
-
-
ExcludedType extends string = never