I would like to check for correct auth/permissions...
# orm-help
b
I would like to check for correct auth/permissions before a user can access my Prisma forwardTo(‘db’) API
Copy code
posts: forwardTo('db')
What’s the best approach to handle this?
j
Can recommend to have a look at GraphQL-Shield.
👍 1
h
Yes, you will require a middleware. I can also recommend graphql-shield
👍 1
b
Cheers, I will checkout graphql-shield.