Prisma 1 Forum

Declarative access to Data Layer GraphQL API

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

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

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.

1 Like