Nexus 1.0: A Major Release for Type-Safe, Code-First GraphQL APIs
prisma.io
prisma.io
How can Nexus / Prisma be used to implement custom functional [auth] directives?
SQL is nice for this, and I eventually switched to that, but the column and row level security work independently and are pretty verbose. It would be amazing if sql row/column security were more tightly integrated...
I'm a small contributor to an nice and modular Accounts/User library built in typescript. It's compatible with several databases, and can be used both with REST and GraphQL transports.
It does have indeed an @auth directive you can use, you can also extend new directives which for example are related to a custom ROLE === ADMIN check, etc, but you need to build this yourself.
If you're interested https://www.accountsjs.com/
PS: I might update some work I did adding oauth with facebook and accompain it with a decent blogpost about how to use the library!