Declarative access to Data Layer GraphQL API


#1

Hi all,

Since Prisma is doing all the hard work of building a GraphQL API to the data, having a declarative method for adding access rules and triggers/hooks to that same API service would be a huge time saver.

Is there an elegant way to selectively expose the data layer GraphQL API without writing a GraphQL server and resolvers?

  • Zak

#2

It looks like the forwardTo feature can help reduce the boilerplate code but that still requires you to write the server and resolver.


#3

You can read more about it here but TL:Dr is that we have a different goal with prisma which is to simply database access and we use graphql just as a wire protocol.