Prisma, Authorization, Typescript, Web Development.
in org Apple const res = await emilyDb.resource.create({ data: { name: 'resource1', public: true, org: { connect: { id: apple.id } }, owner: { connect: { id: emily.id } }, }, }); console.log('Resource created by Emily:', inspect(res)); // Emily shouldn't be able to create a resource in org