Join Slack
Powered by
How do I handle Authorization with prisma/graphql-...
# orm-help
d
Dennis
11/16/2018, 4:14 PM
How do I handle Authorization with prisma/graphql-yoga? Is there an easy way / tutorial?
c
cb
11/16/2018, 4:16 PM
You can use shield as a middleware.
https://github.com/maticzav/graphql-shield
👍 1
d
Dennis
11/16/2018, 4:18 PM
Thanks! I'll take a look :)
f
Fran Dios
11/16/2018, 5:48 PM
You can also use directives for authorization. Example here:
https://github.com/frandiox/vue-graphql-enterprise-boilerplate/blob/master/server/src/directives/index.js#L17
Open in Slack
Previous
Next