0

I have already used Apolloclient with Codegen in Next js. To fetch data in server side, I used this code.

      const { data }: { data: FilterDataQuery } =
        await client(req).query({
          query: FilterDataDocument,
          variables: { orderBy: ASC },
        });

Now I want to use React query with next js. how can i use react query functions and hooks that was generated with codegen in getServerSideProps

0 Answers0