is there a way to limit list operations with permi...
# prisma-whats-new
r
is there a way to limit list operations with permissions??
m
yes -
Copy code
- operation: User.create
  authenticated: true
  query: permissions/User.graphql:adminRole
- operation: User.read
  authenticated: true
  query: permissions/User.graphql:adminRole
- operation: User.update
  authenticated: true
  query: permissions/User.graphql:adminRole
- operation: User.delete
  authenticated: true
r
thanks
m
@roderik I might have misread your question. what are you trying to do with lists?
r
well when i define a model like Posts, it also creates a query called allPosts
but i added all the above permisions
and now i can execute the query allPosts, when authenticated
m
great