Next.js 14 (page router) and Graphql
Unanswered
Aerial yellowjacket posted this in #help-forum
Aerial yellowjacketOP
Hi, I am new to Next.js and Graphql. I have set up a React project , using Next and Graphql. So I am able to display Json data using Apollo Server\Client using experimental-nextjs-app-support . Is this the right package to use? Moreover want to setup CRUD operations. I am stuck here. Any tips or advise will be helpful or even to know if I am in the right direction with the approach of using the package?
8 Replies
@Aerial yellowjacket Hi, I am new to Next.js and Graphql. I have set up a React project , using Next and Graphql. So I am able to display Json data using Apollo Server\Client using experimental-nextjs-app-support . Is this the right package to use? Moreover want to setup CRUD operations. I am stuck here. Any tips or advise will be helpful or even to know if I am in the right direction with the approach of using the package?
for the client, I prefer urql over apollo which has smaller bundle size
https://commerce.nearform.com/open-source/urql/docs/advanced/server-side-rendering/#nextjs
https://commerce.nearform.com/open-source/urql/docs/advanced/server-side-rendering/#nextjs
https://fusedata.dev/
this looks promising but it is still new
this looks promising but it is still new
experimental-nextjs-app-support is for the app router, but you said you're using page router in your titleSo no thats not the right approach
As for setting up crud operations, that's basic graphql / javascript
you can do them however you want
@linesofcode you can do them however you want
Aerial yellowjacketOP
I understand CRUD can be done with any tech stacks. But for the project I am using Next.js framework, Graphql with Apollo Server\Client and CRUD is just a part of it.
