I'm getting type error on group by inside a transa...
# orm-help
s
I'm getting type error on group by inside a transaction query, Is this not allowed or not recommended? Do I need to run a separate query to resolve this?
j
Can you post the type-error?
s
Copy code
(property) UsersService.prisma: PrismaService
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)
Type of property 'NOT' 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)
Type of property 'OR' 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...'.