I'm getting a type error when apyying on prisma gr...
# orm-help
s
I'm getting a type error when apyying on prisma group by
jest.spyOn(prismaService.authProvider, 'groupBy').mockResolvedValue([]);
Error
Copy code
Type of property 'AND' circularly references itself in mapped type '{ [K in keyof { AND?: Enumerable<AuthProviderScalarWhereWithAggregatesInput>; OR?: Enumerable<AuthProviderScalarWhereWithAggregatesInput>; ... 4 more ...; userId?: number | IntWithAggregatesFilter; }]: Or<...> extends 1 ? { ...; }[K] extends infer TK ? GetHavingFields<...> : never : {} extends FieldPaths<...> ? neve...'.ts(2615)
How do I solve this?
1
👀 1
r
Hi Sagar 👋 We are sorry you are experiencing this error. Have you tried using
strictNullChecks: true
as per the docs?
s
@Raphael Etim Thanks
👍 1