Thomas Schaaf
10/12/2021, 9:04 AMconst worker = { id: '1' };
const calls = await this.prisma.call.findMany({
where: {
CallEvents: {
some: { data: { path: '$.workerId', equals: worker.id } },
},
},
});
with the error
TS2322: Type '{ path: string; equals: string; }' is not assignable to type 'JsonFilter | undefined'. Object literal may only specify known properties, and 'path' does not exist in type 'JsonFilter'.Thomas Schaaf
10/12/2021, 9:38 AMRyan
10/13/2021, 6:22 AMjsonFilter preview feature as shown here?
After adding this, run prisma generate and you’ll get the properties.