Prisma, Authorization, Typescript, Web Development.
'staff', permissions: { connect: [{ id: viewPerm.id }] }, }, }); // create two users, Emily (manager) and Adam (staff) // note that we need to make sure "roles.permissions" are included in the // returned result because they are used in the access rules const emily = await prisma.user.create({