Folks - is there a convention (I guess through gra...
# orm-help
r
Folks - is there a convention (I guess through graph yoga resolvers) whereby I can ensure a model is only accessible with X permission? ie. a Note record can only be queried (and importantly via nested queries) if the user owns the note?
n
r
graph-shield doesn't give me model level security. It does at query, mutations and type props, but no, as far as I could understand, at the type level
I got this working in the end - the example on the graphql-shield had some errors in it which threw me off originally. I can set security at the model level.
👍 1
n
maybe submit a PR to fix their example 😄