Prisma, Authorization, Typescript, Web Development.
create a resource with Emily's identity const res = await emilyDb.resource.create({ data: { name: 'resource1', owner: { connect: { id: emily.id } } }, }); console.log('Resource created by Emily:', inspect(res)); // Adam should see an empty list because he's not in the ACL let allResourcesByAdam =