Next.js (v10) with GraphQl and Apollo (v3)

preview_player
Показать описание
The example is made with an API coming from Hasura.

--- 🤙 Book A Consultation ---

CONTACT:

ABOUT THIS CHANNEL:
Dev World is a mix of tutorials and educational videos around Coding, Online Marketing, and Design.

#Nextjs #GraphQl #Apollo
Рекомендации по теме
Комментарии
Автор

Thank You so much my friend!
Actually, this video helped me out to go forward as I was stuck in this!
Highly recommended this guy !
Thank you fella!!!!

danielmeszaros
Автор

Found your channel recently from a tutorial on setting up Gulp - it was super helpful for me, something great really clicked. Really love your teaching style! I'm looking forward to getting more of your videos in my Subscription feed!!

JeremyLanger
Автор

You might have solved a problem I’ve been stuck on for weeks!!!! I can’t wait to get home and test it. Hope so, thanks dude.

shannoncole
Автор

Thank you for this video and explanation, one question I am facing and maybe you have the answer. I have troubles to understand the "caching" of GraphQL compare to REST API. On REST I can easily use a server side cache of NextJS with for example axios-cache-adapter package for axios calls. I was thinking the InMemoryCache of GraphQL will do the same and was not supposed to call graphql on rerendering the page. But I can see than at every reloading of the page my GrapqhQL Api is doing a call on my logs (I use a Strapi Backend).

When I am using REST API with cache there are absolutely no more apis call to my backend since it is caching

flo_dev
Автор

could you please help me understand why are we doing both useQuery at top inside functional component and also getStaticProps which also does the same job?

i understand one is client side rendering and the other is ssr, but are we supposed to do both while querying or is it just that you did it for example/demo purpose for this video?

and we can decide between ssr and static rendering by deciding if the data changes frequently or often accordingly, but how do we decide between client side rendering and ssr? thank you.

wassup
Автор

Please help me out!
I want to use getStaticProps in dynamic route, so i have to add getStaticPath as well! How do you do that with this same example in this video???

danielmeszaros
Автор

I've tried this out and it works great for Static Rendering, however in production I can't get it working for ISR - is there something that needs to get changed to make that work besides adding the revalidate property to getStaticProps? Thanks!

spencerbigum
Автор

Is it better to fetch data this way or fetch in the getStaticProps and then pass them as props?

georgekrax
Автор

Hey Can you make a video how to use get access to server cookie for login authentication?

usmanmughal
Автор

Thank you so much for explaining you have saved me from killing my own self

sumitsinghdeode
Автор

well this is only for apollo client and the server.

chenglalonde
Автор

Thanks a lot bro. Keep up the good work. +1 sub.

consoledoterror
Автор

This wont work in production - your production API endpoint will not know about any changes to your schema that you made locally, so build time queries will fail.

Appelsinvanden
Автор

Just saying. . . If you're making a tutorial please don't have the half of it already created in advance.

gigakvachakhia