prisma-nestjs-graphql
prisma-nestjs-graphql copied to clipboard
combineScalarFilters produces unresolvable type
when specifying combineScalarFilters config property, the generated ts definitions produce output similar to this
TS2304: Cannot find name 'FloatFilter'.
1036 | _count?: InstanceType<typeof IntFilter>;
1037 | @Field(() => FloatFilter, {nullable:true})
> 1038 | _avg?: InstanceType<typeof FloatFilter>;
| ^^^^^^^^^^^
1039 | @Field(() => IntFilter, {nullable:true})
1040 | _sum?: InstanceType<typeof IntFilter>;
1041 | @Field(() => IntFilter, {nullable:true})
but FloatFilter is not defined..
seeing this issue on 18.0.2 and 18.1.1 (Prisma 4 compatible releases)
@scarrico-divergent Could you provide your schema or part of it to reproduce the error?
Are you using combineScalarFilters with emitSingle?