UseQuery Hook in Apollo Client | GraphQL Course For Beginners Ep. 6

  Рет қаралды 14,917

PedroTech

PedroTech

Күн бұрын

Hey everyone, this is the episode 6 of my new GraphQL course.
Code: github.com/mac...
Course Topics:
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
- What is GraphQL?
- GraphQL vs. REST
- Basic GraphQL queries
- How to create a GraphQL API using NodeJS and Apollo Server
- GraphQL Language: Types, Queries, Mutations, Scalars, Enums, Unions
- How to use GraphQL in React (Apollo Client)
- How to improve a GraphQL API and best practices.
-
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
-
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Linkedin: / machadop1407
Instagram: / _pedro.machado_
Github: github.com/mac...
Email: machadop1407@gmail.com
Tags:
- GraphQL
- GraphQL Course
- GQL Tutorial
- API Tutorial
#graphql #graphqltutorial

Пікірлер: 37
@niqueyschannel
@niqueyschannel 2 жыл бұрын
OMG...the first person to have the same error I was having and the first video to actually help....I have been struggling for hours...Thank you sssoooo much
@vishalthapa3101
@vishalthapa3101 2 жыл бұрын
Error handling is not working for useLazyQuery?
@alexmax3311
@alexmax3311 Жыл бұрын
Hi bro can you help me I follow your code and I can't fetch data to react component (loading is always = true and data = undefined ) {data: undefined, loading: true, networkStatus: 1, refetch: ƒ, reobserve: ƒ, …} called : true client : ApolloClient {resetStoreCallbacks: Array(0), clearStoreCallbacks: Array(0), link: ApolloLink, cache: InMemoryCache, disableNetworkFetches: false, …} data : undefined fetchMore : ƒ () loading : true networkStatus : 1 observable : ObservableQuery {observers: Set(1), subscriptions: Set(0), queryInfo: QueryInfo, queryManager: QueryManager, _subscriber: ƒ, …} previousData : undefined refetch : ƒ () reobserve : ƒ () startPolling : ƒ () stopPolling : ƒ () subscribeToMore : ƒ () updateQuery : ƒ ()
@irudhayaswamy
@irudhayaswamy 3 жыл бұрын
Awesome Pedro I am following you please keep going this series completely . Since there is no complete series in youtube or web on these.
@channel-xp7iq
@channel-xp7iq 3 жыл бұрын
Fala pedrao, manda bem demais vey!!!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! I am also going to release a video with all the episodes condensed into one!
@irudhayaswamy
@irudhayaswamy 3 жыл бұрын
@@PedroTechnologies This is awesome
@puneetsingh9678
@puneetsingh9678 3 жыл бұрын
@@PedroTechnologies yes condensed videos are helpful. I use your all hooks in one video as a quick reference
@hitusehgal
@hitusehgal 2 жыл бұрын
For all those facing the error: " Module not found: Can't resolve 'graphql' in '\client ode_modules\@apollo\client\core' " Instead of doing: "npm install @apollo/client" Please do: "npm install @apollo/client graphql"
@Arifhossain-fk3ub
@Arifhossain-fk3ub 2 жыл бұрын
I faced the same error...your comment help me to figure out the error...thanks
@hitusehgal
@hitusehgal 2 жыл бұрын
Welcome :)
@juanroldan1989
@juanroldan1989 3 жыл бұрын
This is an AMAZING course! I'm following along and practicing on every episode and sharing them and is REALLY great! Keep those episodes coming mate : D All the best from Argentina!
@curiosabouttech
@curiosabouttech Жыл бұрын
Thank u so much pedro you the best.
@adolphheerver335
@adolphheerver335 3 жыл бұрын
Thank you so much pedro, this is pure gold, please keep it going to finish all
@sonusingh-zr6xw
@sonusingh-zr6xw 3 жыл бұрын
Great content Pedro. Which code editor are you using?
@aurora23301
@aurora23301 Жыл бұрын
Hey Pedro, love your tutorials. I have a question. I am not sure why localhost:4000 doesn't seem to work for me. Anyone knows why?
@ayushyt918
@ayushyt918 2 жыл бұрын
Thank you Pedro !!
@ayushyt918
@ayushyt918 2 жыл бұрын
Thank you man once again
@develop-with-faizan
@develop-with-faizan 3 жыл бұрын
Hello Pedro! I have 2 questions kindly reply them both 1)is the backend graphql completed? Or is there anymore to it? And 2)Do we use Redux in grahql how to we do state management with me Kindly guide me
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hey Faizan! 1) No, I still want to make a video going over stuff like subscriptions / context / and more 2) Apollo Client is a replacement for redux bc it is a state management library. I usually go with Apollo Client + Context API
@develop-with-faizan
@develop-with-faizan 3 жыл бұрын
@@PedroTechnologies okay thank you so much and don't stop the series man .So good.
@Mersal-tq9lm
@Mersal-tq9lm 2 жыл бұрын
Hello mate, You videos are awesome. You can say '$' as dollar signs. As all these ¥,€,... are money signs. So if you chose to be more specific.
@lizzienovigot
@lizzienovigot 3 жыл бұрын
Why does it end abruptly midsentence? %)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Ohh damnn, ur the first to point it out. I didn’t realize it 😔 must have been a mistake while editing. I will post the whole series as a single video next week and will include the rest
@codingispower1816
@codingispower1816 2 жыл бұрын
Excellent video, Pedro! Unfortunately at the end of the video when you are explaining a useLazyQuery alternative the video cuts off. :(
@АртемТрейко-э2в
@АртемТрейко-э2в 3 жыл бұрын
Thank you! Dude, load this video to the GraphQL playlist! +1
@chiragkumawat3456
@chiragkumawat3456 3 жыл бұрын
This is what i really want ,loved the way of your teaching Looking forward for many more videos on graphql advance features like middleware context etc
@MrZalesacek
@MrZalesacek 3 жыл бұрын
Are you planning to do explanation tutorial about working with Apollo client cache ?
@eusouluao
@eusouluao 3 жыл бұрын
Pedro, consegue fazer um video ensinando como fazer um shopping cart component?
@craigjohnson8279
@craigjohnson8279 3 жыл бұрын
Great video Pedro. I hope that you go over Mutations and Caching.
@Master-sy8si
@Master-sy8si 2 жыл бұрын
Thanks for this awesome course man!!
@abhaytiwari6411
@abhaytiwari6411 3 жыл бұрын
Awesome 😎 as always
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you so much 😀
@emmanuelamodu2390
@emmanuelamodu2390 Жыл бұрын
Great course. Thanks
@Master-sy8si
@Master-sy8si 2 жыл бұрын
Great simple explanation!
@manoj-k
@manoj-k 2 жыл бұрын
🔥🔥🔥
@Victor-wh9bs
@Victor-wh9bs 2 жыл бұрын
Great Video
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 53 МЛН
Build and Deploy a GraphQL API using NodeJS (tutorial for beginners)
3:40:25
APIs for Beginners 2023 - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 2 МЛН
Vue.js Course for Beginners [2021 Tutorial]
3:39:56
freeCodeCamp.org
Рет қаралды 1,1 МЛН
React With GraphQL (Apollo Client) Crash Course
1:06:28
Laith Academy
Рет қаралды 89 М.
Mutations | GraphQL Course For Beginners Ep. 5
32:58
PedroTech
Рет қаралды 14 М.
Basic Types and Queries | GraphQL Course For Beginners Ep. 2
29:57
API Testing Using Postman | Crash Course
3:27:51
Mukesh otwani
Рет қаралды 97 М.
Learn GraphQL in 4 Hours - From Beginner to Expert
3:55:14
PedroTech
Рет қаралды 182 М.