so I cannot query the db with gql now? It's merely another orm?
r
Ricco
06/11/2020, 7:56 PM
Basically with the orm generated for the typings are amazing!
r
Ryan
06/12/2020, 6:52 AM
Hey @Lewis 👋
You can query the db directly whether you're using GraphQL or not. Prisma 2 is just a database access layer (not an ORM) as explained here.
So you can use any GraphQL server (Apollo Server, Nexus framework) and create an endpoint via those.
l
Lewis
06/12/2020, 5:35 PM
@Ryan I don't follow, don't I need to have a resolver and a schema definition ?
r
Ricco
06/12/2020, 8:58 PM
you do. you dont use graphql to access data from the database which I believe was how Prisma1 did things.