Prisma, Authorization, Typescript, Web Development.
await adamDb.resource.findMany(); expect(allResourcesByAdam).toHaveLength(0); // Emily should be able to grant Adam access await emilyDb.resource.update({ where: { id: res.id }, data: { access: { create: { user: { connect: { id: adam.id } }, view: true }, }, }, }); console.log('Resource access