Migrate from apollo graph ql query to tanstack react query
I want to use tanstack react query instead of apollo graphql query in my existing next js project
1 Reply
fair-rose•11mo ago
there's these docs: https://tanstack.com/query/latest/docs/framework/react/graphql
you could also write your a lil fetch util with pretty much any way of authoring queries.
this is a simple example for what I use with gql tada: https://tsplay.dev/mbeLoN
gql tada: https://gql-tada.0no.co/
GraphQL | TanStack Query React Docs
Because React Query's fetching mechanisms are agnostically built on Promises, you can use React Query with literally any asynchronous data fetching client, including GraphQL! Keep in mind that React Q...
TS Playground - An online editor for exploring TypeScript and JavaS...
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
gql.tada 🪄
Magical GraphQL query engine for TypeScript