Fetch data using apollographql in next 14
Unanswered
Hackberry nipple gall parasitoid posted this in #help-forum
Hackberry nipple gall parasitoidOP
In my old project Iam using getServerSideProps props to fetch my graphql data and use it on latest next 15 how to perform the same action. Kindly help me with this isue
3 Replies
you can fetch your data source directly inside your server component. You can read more about data fetching here: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating
@Hackberry nipple gall parasitoid
@Hackberry nipple gall parasitoid
@Hackberry nipple gall parasitoid solved?
I followed this guide to set up apollo in my next 14 project: https://www.apollographql.com/blog/how-to-use-apollo-client-with-next-js-13#next-js-cache-and-apollo