Prisma, Authorization, Typescript, Web Development.
Microsoft await expect( emilyDb.resource.create({ data: { name: 'resource2', org: { connect: { id: microsoft.id } }, owner: { connect: { id: emily.id } }, }, }) ).rejects.toThrow(); // the resource is readable to Adam const resByAdam = await adamDb.resource.findUnique({ where: { id: res.id }, });