⚡ Turns your ◭ Prisma Schema into a fully-featured GraphQL API, tailored for AWS AppSync.
BSD 2-Clause "Simplified" License
226
stars
18
forks
source link
Fine-grained access control does not work for Mutation :: Delete #119
Closed
StephanDecker closed 1 year ago
We can't implement access control for Mutation :: Delete following this guide here: see https://prisma-appsync.vercel.app/advanced/securing-api.html#%F0%9F%91%89-fine-grained-access-control.
I get the following queryParams:
I think the reason is that the
canAccess
variable istrue
by default and the path array only contains the getPath so that we can't apply the delete shielding rules, see. https://github.com/maoosi/prisma-appsync/blob/main/packages/client/src/guard.ts#L118 I solved it by checking the operation prop of queryParams