What is the latest with nexus-prisma-plugin? I'm t...
# random
s
What is the latest with nexus-prisma-plugin? I'm trying to build a graphql API with nexus and nexus-prisma-plugin but seem the project has been discontinued. Anywork around to use it in 2022 projects, is it advisable to use it?
p
I was on a similar boat ended up using pothos https://pothos-graphql.dev/docs/plugins/prisma It integrates well with prisma
s
Thanks Pedro, does it generate crud apis like nexus-prisma-plugin does using data models defined in Prisma.schema?
p
you have to define a separate model for the Graphql schema. https://pothos-graphql.dev/docs/plugins/prisma It's all typesafe and then once that is done. it can generate the includes for prisma based on the fragment you request from the server. But you will still need to specify the relationships that is allowed to fetch.