Prisma, Authorization, Typescript, Web Development.
console.log('Resource read by Adam:', inspect(resByAdam)); expect(resByAdam).toBeTruthy(); // the resource is not readable to Joe const resByJoe = await joeDb.resource.findUnique({ where: { id: res.id }, }); console.log('Resource read by Joe:', inspect(resByJoe)); expect(resByJoe).toBeNull();