Hey all, using the latest version Prisma on a new ...
# orm-help
e
Hey all, using the latest version Prisma on a new side project after not using it for a long time - I had previously used v1. I remember with v1, running
prisma generate
and having a file be created with all the possible CRUD operations based on my Models. Then i could just look at that file and find the Prisma created function that I needed and add it to my Query/Mutation. It doesn't seem to work like this in the latest version? How do I know what functions I can call? Or is it just the generic ones listed here - https://www.prisma.io/docs/reference/api-reference/prisma-client-reference
r
@ezeikel 👋 Prisma 1 was coupled with GraphQL, but Prisma 2 is a complete re-write and just an ORM now, so you can use it with REST and GraphQL both. Have a look at this tutorial to get started. For auto-generating GraphQL resolvers based on your Prisma schema, you need to setup a GraphQL server separately and use libraries like TypeGraphQL or Pal.js