React Query with GraphQL | React Query Tutorial

preview_player
Показать описание
React-Query with GraphQL! You don't need to use Apollo or Relay for grabbing data from a GraphQL API. React-Query is agnostic and you can fetch data from any API.

Learn how to do it in this video. I'm using react-query in combination with graphql-request and graphql-tag.

Also learn how to include headers with an authorization token and variables in the query.

Support me by subscribing to this channel ❤️

Do you want to master #react, #gatsby, or #svelte fast? ⏩ 🚀 👩‍🚀



Find me somewhere below:

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

React-Query v3.2 is officially released now so you don't need to use the beta version =)

Weibenfalk
Автор

Dude, you have the best teaching accent--I mean, voice!

yourdadishere
Автор

Never used it with graphql. I saw you talking about this in your newest video and became interested. Thanks for this info Thomas. Strongly considering changing from Apollo.

CodingNuggets
Автор

Love your accent bro. Also your teaching

vasilispapasakellariou
Автор

This was great. Thanks so much for this!

JamesQQuick
Автор

this was awesome tutorial, thanks @Weibenfalk

gauravmithas
Автор

thank you, this is how all tutorials should be you literally threw in how to use tokens and headers which would have been a long trip to stack overflow

hakuna_matata_hakuna
Автор

Hi Weibenfalk,

Thank you very much for the great video, I've been wondering if I should keep going with @apollo/client or give it a try with react-query and your video just convinced me to give it a try :) You've earned a new subscriber :)

Freeman
Автор

How i can upload files using react-query and graphql. I am really struggling on that end.

bakbak
Автор

How can I fix the error Maximum call stack size exceeded in graphql ?

tronganhnguyenthanh
Автор

Hello! pretty nice your tutorial :) thank you so much for your free content.
I have a question: From where is the coming `query` tag on line 13?
I'm not been able to reproduce the example when the query has variables.

juagarciaga
Автор

But react-query does't have any knowledge of the qraphql schema, and therefore can't enforce type correctness on the client. Right?

zomakaja
Автор

Just found this, but could you do an example using this but for mutations?

syvirren
Автор

Hey, will this work in "getServerSideProps" or "getInitialProps" when using Next.js?

jamesfromvenice
Автор

dude the first sound literally gives a headache to anyone with headphones

hugodsa
visit shbcf.ru