Prisma, Authorization, Typescript, Web Development.
user: emily }); const adamDb = enhance(prisma, { user: adam }); const joeDb = enhance(prisma, { user: joe }); // Emily should be able to add Adam to the org await emilyDb.org.update({ where: { id: apple.id }, data: { members: { create: [ { user: { connect: { id: adam.id } }, role: 'MEMBER' }, ], },