does anyone know if you can re-use a single permis...
# prisma-whats-new
m
does anyone know if you can re-use a single permission defintion across multiple different operation types on different node types? i.e.
Copy code
query adminRole($user_id: ID!) {
  SomeUserExists(filter: {id: $user_id, role: ADMIN})
}
a
If you use the CLI, you can specify the same permission query file for multiple permissions.
👍 1
😄 1
m
awesome - thanks!
😎 1
Can you set
- operation: ContactUsMessage.update
to
- operation: ContactUsMessage.*
a
No, that's not possible yet
m
thanks
😎 1
you're really on top of this
btw I made the switch to CLI 🙂 and implement my own email verification finally!
🎉 1
a
How has that experience been?
m
it has been good. I like it so far. A couple of bumps in the road but it's better on the whole
👍🏻 1