I'm curious, anyone here developing GraphQL APIs t...
# orm-help
s
I'm curious, anyone here developing GraphQL APIs together with Prisma & Next.js?
h
Yes why? 😄
🦜 1
m
I’m working on a tutorial for Next.js and GraphQL!
h
I have production ready API with GraphQL and Next.js 🙂
👀 1
s
Nice!
Well, I've just started looking into this and am wondering about how others approach this
Mainly the sync between Prisma schema/generated types & graphql schema
h
plus one +1 1
m
My setup is using apollo-server-micro and nexus
h
I did implementation for API routes in Next.js btw 🙈
s
Ah yes, I found out about that too; installed it yesterday and it does seem quite nice to keep the code strongly typed
Cool, curious to discover your article about it 😉
I have my GraphQL endpoint exposed, also as a Next.js API route
I've added authentication using a sort of middleware too
h
I have a lot of tricks for Next.js and Prisma, currently sitting in my starter kit, but I am waiting until https://github.com/nextauthjs/adapters/tree/canary/packages/prisma is fixed with latest Prisma version.
p
Can i know where do u deploy your api?
s
On Vercel
Ah yes, I'm also using the canary version because of that 😉
We're in the same boat it seems hehe
So my setup so far is Next.js + NextAuth + Prisma + Postgresql + GraphQL + Nexus
h
There is multiple problems with prisma adapter, mainly there is missing builded version in NPM 🙈 So it’s pointless to use it other than locally.
m
s
Ah, didn't stumble upon that. Nice
m
@huv1k feel free to point out the problems because we can reach out to the next-auth maintainers
h
Yes, but not with
@next-auth/prisma-adapter
🙂
I tried to contact @Will here so we can sync, but looks like he is not active here 😞
m
Oh no worries, I’ll ping him now 😄