Is there are repo with a up to date version of Nex...
# orm-help
p
Is there are repo with a up to date version of NextJS, Prisma and Apollo (client and server). The one there now uses HOC’s and getInitialProps which means to me it’s very very old. https://dev.to/prisma/complete-introduction-to-fullstack-type-safe-graphql-feat-next-js-nexus-prisma-c5 and https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql-nextjs I’m trying to keep a good attitude about Prisma but my newby experience is not going well.
r
@Peter Kellner 👋 You can have a look at this: https://github.com/ryands17/fullstack-gql/tree/main/frontend
👀 1
I’m trying to keep a good attitude about Prisma but my newby experience is not going well.
Any issues you’re facing in particular?
p
@Ryan this project you mention is very helpful. I’ve got the apollo client and _app.js moved into my project already working now. I’ve been using nexus as my integration point between Prisma and GraphQL (for me, Apollo). I notice you mercuriousCodeGen. Is that independent of Apollo? Seems like it’s tied to Prisma but not really sure. I’m really having trouble grocking the full echosystem around Prisma
r
It’s not tied to Prisma. Mercurius is based on Fastify which is similar to Express if you have used that. Apollo is good as well, basically the ecosystem will be tied to Node in general as Prisma would be used as an ORM in your resolvers to fetch data.
p
@Peter Kellner I only saw this like 9 days later, but in case it helps, the nextjs example got updated to not use the HOC approach (with legacy getInitialProps and getDataFromTree) anymore. https://github.com/vercel/next.js/tree/canary/examples/with-apollo