is it possible to make graphcool return data inste...
# prisma-whats-new
w
is it possible to make graphcool return data instead of "Insufficient Permissions" error when the authenticated user has read permissions to parts of the result tree / list ?
m
@Wincent not as far as I'm aware. But I think the response still contains the data the user has read permissions. You have to handle the error on the client
w
tried in playground and I get only the errors, no data
m
I think if you query a node on which you have read permissions but not the read permissions on a relationship, it will show you that node but not the connect node
so maybe that's not what you are looking for
w
i get the same errors if I query only scalar fields
m
I'm not sure there is a way around this
w
Looks like I have to make sure my graphql queries match the rules in my permission queries?
m
yes. I moved to
graphql-yoga
and
prisma
and I can implement the permission logic in the resolvers which makes it possible to do what you're trying to achieve
w
ok, thanks!