Did anyone else just get emotional going through this tutorial like how easy it has become to get data and not just data, i mean data that is relevant to the current scenario. Also the way he gets excited really kept me going. Thank you sir!!
As an extreme newbie in GraphQL, I can say, by GOD this is one of the best, most easiest and well-explained videos out there on GraphQL, if not the best. Hands down!
You're a great teacher, Laith! Thanks so much for the hard work you put into these, they're incredibly helpful. I feel lucky to have found your channel!
I really appreciate the way you enlarge the UI and text size so that we can easily watch your video on mobile devices, even on a mobile phone. Thank you so much!
3:26:11 Once again mate! Mind syntax! updateCategory: (parent, { id, input }, { db: { categories } }) => categories[categories.findIndex(c => c.id === id)] &&= { id, ...input } - as you may notice, if findIndex returns -1 the whole expression will give us undefined. Thankfully, we've got an operator &&= which only assigns a value once the left side isn't null or undefined. Meaning, we would assign a new object to the a corresponding index OR return undefined which would be null in the schema. It's a classic oneliner which definitely easier to comprehend and read. What I really don't get.... is that why we need to supply all fields to update just one? GraphQL allows us to read just one field that's why it's great for but on the other hand when we update a field - we need to specify all fields. It's strange.
You're the reason I get to learn, understand and become a great developer. I have a request, could you please make a tutorial on Webpack 5 and set a react project with Webpack manually for both dev and prod?
Thank you so much Laith, you are really a great teacher. This course is the best I have ever seen with your amazing explanation method of every thing in graphql. Bravo and more success.
I've been seraching for graphql tutorials. The documents aren't helpful, their small dummy project is not enough for me to understand. The other tutorials are all outdated. And then I came across your video, you really give detailed explanations that are helpful, thank you so much
Hello everyone, around 2:50:27 Laith explains that we would not be able to delete anything unless we export a single object, can anyone explain this in more depth to me? I don't really understand the difference or what really changed. Thanks in advance.
even in Rest we can select what we want right(select name , image from products that's it)? instead of over fetching. it all delepnds on SQL queries right? 9:36
At 2:44:05 there was not any server related mistake when you were executing Add review mutation first time , it was you just forgot to execute the addition command because meanwhile you start writing th select query in the other window . so select query didnot work you thought that its server restarted but actually you forgot to execute the addreview mutation .
Question, the GraphQL looks like a black box for me. How do I get a list of all available tables inside the GraphQL? Also How do I list all fields in each table? I am using SQL and not sure how to find the data inside the GraphQL quickly.
@Laith Harb , I have taken one of your Nextjs course in udemy While connecting a database getting this error. when i run the command > npx prisma db push Error: Migration engine error: db error: ERROR: prepared statement "s0" does not exist
How to use schema Directives in Apollo V4. Can anybody explain to me how this will work through examples like role (Admin, user) to allow access to specific mutations/queries?
can you please tell me which vscode theme are you using ? I really need that theme, I could not get those highlighter in my default vscode theme as shown in this tutorial in schema.js file
Thank you for this great introduction to Graphql. I liked it, but I am a little confused about the real advantage of Graphql over REST. I thought that the whole idea of Graphql is to provide a highly flexible querying language that saves the need of explicitly predefining a whole CRUD stack for each and every type (entity) in our data, thus avoiding the verbosity and inflexibility of REST endpoints. But it seems that we end up explicitly defining all our queries and mutations for each of our types anyway, even when all they need is plain CRUD operations, as opposed to mapping our data (the schema) to our presentation declaratively and let a default generic stack do most of the work. I'd be curious to hear your thoughts on this matter, what is the advatage here over RESTful APIs and whether we really become more flexible or less verbose in this approach to querying data? Maybe there's a way to make these CRUD operations more generic and declarative?
Hi is it possible to integrate GraphQL along with Node JS template engine like EJS/PUG. Because in REST we can create dynamic html files based on the incoming route and after receiving the request we process it and send out html using render( ) But in GraphQL since there is only one endpoint how to send out dynamic html files based on the incoming route or we can only send the JSON objects ? I need to use GraphQL but with NODE + EJS - is this even possible ? or we can use it only with client side like React etc.. can you please give a simple example for this scenario ?
2:12:33 -> with your logic if onSale is set to false it wont return products with onSale being set to false. because you only filter if onSale is set to true. Correct implementation should be if onSale !== undefined then filter ... product.onSale === filter.onSale. Justa small nitpick, otherwise great introduction, thanks
thanks for this course i really fall in love with graphql because of you, this course can be much better if it was with typescript instead of js, thank you bro for all yours efforts
Hey man, thanks for uploading this. one thing that bothered me in the video is the zooming (too zoom in), i think you went too far with the zoom. i believe 70% is normal. i hope you understand my point. Thanks Anyways.
Have someone figure out with some another function/method how make the filter for the average?Its absolutely hilerious, thats it should use so crazy function, but normal function from my side didnt work. Burning head :D
This is a great tutorial but I feel like you could have done the database a little more practical with like using mongodb instead of keeping all the data in an object in one file.. once again great tutorial!
Hello Thanks a lot for your time and all your efforts Would you consider making a tutorial about GraphQL using Fastify and Mercurius ? Thanks again Have a nice coding day/night
Did anyone else just get emotional going through this tutorial like how easy it has become to get data and not just data, i mean data that is relevant to the current scenario. Also the way he gets excited really kept me going. Thank you sir!!
As an extreme newbie in GraphQL, I can say, by GOD this is one of the best, most easiest and well-explained videos out there on GraphQL, if not the best. Hands down!
You're a great teacher, Laith! Thanks so much for the hard work you put into these, they're incredibly helpful. I feel lucky to have found your channel!
I really appreciate the way you enlarge the UI and text size so that we can easily watch your video on mobile devices, even on a mobile phone. Thank you so much!
This is an absolutely fantastic introduction to GraphQL! Very well paced and easy to follow.
spent the whole day on a lot of tutorials. And finally, I got you. Thank you very much. Please keep uploading this types of quality video
3:26:11 Once again mate! Mind syntax! updateCategory: (parent, { id, input }, { db: { categories } }) => categories[categories.findIndex(c => c.id === id)] &&= { id, ...input } - as you may notice, if findIndex returns -1 the whole expression will give us undefined. Thankfully, we've got an operator &&= which only assigns a value once the left side isn't null or undefined. Meaning, we would assign a new object to the a corresponding index OR return undefined which would be null in the schema. It's a classic oneliner which definitely easier to comprehend and read.
What I really don't get.... is that why we need to supply all fields to update just one? GraphQL allows us to read just one field that's why it's great for but on the other hand when we update a field - we need to specify all fields. It's strange.
i finished it . and went to udemy for the full course. thank you
You're the reason I get to learn, understand and become a great developer. I have a request, could you please make a tutorial on Webpack 5 and set a react project with Webpack manually for both dev and prod?
I am looking forward for this vid also
Just out of interest, why would you want to set it up manually when CRA, Next and Gatsby sort it for you?
Try
@@WillGains because some companies want it done from scratch
Thank you so much Laith, you are really a great teacher. This course is the best I have ever seen with your amazing explanation method of every thing in graphql. Bravo and more success.
I've been seraching for graphql tutorials. The documents aren't helpful, their small dummy project is not enough for me to understand. The other tutorials are all outdated. And then I came across your video, you really give detailed explanations that are helpful, thank you so much
35:58 wrote same code but getting error like this,
TypeError: AppoloServer is not a constructor
One of the best teachers I've found on internet !!
Purchased your course on Udemy. You are one of the best tutors who use the latest tools in the current market
Hello everyone, around 2:50:27 Laith explains that we would not be able to delete anything unless we export a single object, can anyone explain this in more depth to me? I don't really understand the difference or what really changed. Thanks in advance.
by the way wonderful tutorial , first time a person make me realize what is graphql , you took very well , and make the audience learn in baby steps .
even in Rest we can select what we want right(select name , image from products that's it)? instead of over fetching. it all delepnds on SQL queries right? 9:36
Thank you so much. Now I am confident on graphql with node.
Thank you Laith, I'm gonna start studying GraphQL in a month or so and probably, with your udemy course, it will be much easier
Such an insanely amazing course. Thnx buddy
Precise description and complete.
Well i usually love to watch your videos at 1.75x 😄
I accidentally found your channel here I'm addicted to it 😂❤❤❤❤❤
Bought using your link to support u 👌
Thanks mate, I saw!
At 2:44:05 there was not any server related mistake when you were executing Add review mutation first time , it was you just forgot to execute the addition command because meanwhile you start writing th select query in the other window . so select query didnot work you thought that its server restarted but actually you forgot to execute the addreview mutation .
Hey Laith ! Your tutorial is very nice and pretty clear! I do like the way you’re teaching and really appreciate for your contribution! Keep going!
How can you provide the context that way ? I have to provide a function, and not in the constructor of the server but while starting the server...
Question, the GraphQL looks like a black box for me. How do I get a list of all available tables inside the GraphQL? Also How do I list all fields in each table? I am using SQL and not sure how to find the data inside the GraphQL quickly.
Awesome tutorial. You also explain what is happening and best practices too.
Full learning package. Great work bro
You r so awesome; I wish you have millions subscribers. One of the best TH-camr channels in here;
Thank you very much for the concise and excellent demo.
In 2:50:00, what is the exact reason we can't delete?
I love this! Very simple and easy to understand, and code along. Thanks a lot! Keep up the good work.
Loving this tutorial! Recommend for future videos to be just a tad more zoomed out. Maybe its just me though. Thanks for the content!
@Laith Harb , I have taken one of your Nextjs course in udemy
While connecting a database getting this error. when i run the command
> npx prisma db push
Error: Migration engine error:
db error: ERROR: prepared statement "s0" does not exist
Excellent tutorial, Just a tip , it could have been more useful if you could also include the N+1 db queries issue in graphql and how to resolve that.
How to use schema Directives in Apollo V4.
Can anybody explain to me how this will work through examples like role (Admin, user) to allow access to specific mutations/queries?
thanks a lot for the complete course on udemy . Please make more udemy courses .it is much affordable for many . Thanks again
Very good! Thank you for creating this course -- and all your other course too! Hell...I'm heading over to Udemy to buy the full course. :)
Hi,
Thank you very much for this video, it is so helpful! I'm really looking forward to continuing to watch your videos and learning from you.
I just saw your redux course I know for sure, you are an awesome teacher. Please do use visual tools to teach us. Its really helping us :-)
This is very helpful video and you have explained everything very clearly. Take love.
Dude stopped the video to attend to the cat ❣
Great content, big fan
can you please tell me which vscode theme are you using ?
I really need that theme, I could not get those highlighter in my default vscode theme as shown in this tutorial in schema.js file
This video makes my coading life easier in graphql means a lot man 🙏😍
Thank you for this great introduction to Graphql. I liked it, but I am a little confused about the real advantage of Graphql over REST. I thought that the whole idea of Graphql is to provide a highly flexible querying language that saves the need of explicitly predefining a whole CRUD stack for each and every type (entity) in our data, thus avoiding the verbosity and inflexibility of REST endpoints. But it seems that we end up explicitly defining all our queries and mutations for each of our types anyway, even when all they need is plain CRUD operations, as opposed to mapping our data (the schema) to our presentation declaratively and let a default generic stack do most of the work.
I'd be curious to hear your thoughts on this matter, what is the advatage here over RESTful APIs and whether we really become more flexible or less verbose in this approach to querying data? Maybe there's a way to make these CRUD operations more generic and declarative?
I love your explanation. It is so easy to understand. Thank you
Hi is it possible to integrate GraphQL along with Node JS template engine like EJS/PUG. Because in REST we can create dynamic html files based on the incoming route and after receiving the request we process it and send out html using render( )
But in GraphQL since there is only one endpoint how to send out dynamic html files based on the incoming route or we can only send the JSON objects ?
I need to use GraphQL but with NODE + EJS - is this even possible ? or we can use it only with client side like React etc..
can you please give a simple example for this scenario ?
After Watching your video in Net Ninja about React Testing Library I am addicted to your Videos
Is there is ui for ecommerce in this course?
Brilliant and educational ! ... also multiple cursor 🙂
Thanks a lot, your video really helped me to understand graphQL
how would you deal with graphql disadvantage like: caching (redis), rate limiting ?
Thank you Laith , loving this tutorial!
Brilliant! Thx for sharing your knowledge. Would you do a fresh version with connecting and saving consisting data into PostgreSQL?
The full course has a section that does that
Hi Laith< thank you for the course, going to learn it soon)
2:12:33 -> with your logic if onSale is set to false it wont return products with onSale being set to false. because you only filter if onSale is set to true. Correct implementation should be if onSale !== undefined then filter ... product.onSale === filter.onSale. Justa small nitpick, otherwise great introduction, thanks
Thanks for the course. I’m interested in buying your Udemy course but the couple no longer works..
Is there any discount going on for the Udemy course? The discount on the link above is no longer working.
Out of discount codes this month. I’ll do it again next month
Love your content and respect your hardwork and dedication ❤️
Question! Should I buy your course in udemy to learn graphQL properly, or is it enough to learn from your TH-cam crash course?
Nice bro! Congrats!
This tutorial was very helpful, thank you very much!
Can you make a video on graphql with php...
On same content like this
Great video. I bought your course on Udemy as support for this great work.
Awesome video, really helpful! Can you do a crash course for WunderGraph sometime?
Superb content! 😁👏
Nice work bro❤
Thank you for this, very vivid explanations. God Bless you🙏
thanks for this course i really fall in love with graphql because of you, this course can be much better if it was with typescript instead of js, thank you bro for all yours efforts
udemy course is in TS
nice work start with basic and explain everything
Thanks for the Udemy course 🙂
Thanks man, you are doing great work!!!
Thanks! This crash course is very helpful
Thanks for such a great video ✨✨
Definitely planning to get this one. You're a great instructor. Do you have any other topics planned too?
Udemy courses take so long to make so I want to focus on the TH-cam channel for now, but it'll definitely won't be the last one
@@laithacademy Looking forward to it, I completely understand 😄
Very well explained 👏
Thank you so much for this!!
Hey man, thanks for uploading this. one thing that bothered me in the video is the zooming (too zoom in), i think you went too far with the zoom. i believe 70% is normal. i hope you understand my point.
Thanks Anyways.
How to write logic ??i always feels confuse writing logic
Solid video!
Are you planning on making a React Native tutorial?
Have someone figure out with some another function/method how make the filter for the average?Its absolutely hilerious, thats it should use so crazy function, but normal function from my side didnt work. Burning head :D
thank you bro that was really helpful
hooooo yes! Not event watching the video directly buying your udemy course! Hope its not your last udemy course :)
please make next part like graphql middleware, protect multiple resolver or all resolver in a file.
Thank you for your amazing videos!!
Very good course, thank you ; )
Is Date a scalar type too?
Nope, but you can create a custom scalar, see Apollo Graphql Server Docs
There is no discount on Udemy Course, the course cost €84.9. Could you please provide a coupon.
Yes I will
thx bro 1 day ago!!
Thanks for this tutorial. Can you adding subtitles to video lectures in the Udemy course?
Hoping that you will include mongoDB connection in your udemy course
Amazing! Thank you :)
Does the Graphql N+1 problem still exist?
Yes of course
thank you for your great work here
Thanks, great and useful video
This is a great tutorial but I feel like you could have done the database a little more practical with like using mongodb instead of keeping all the data in an object in one file.. once again great tutorial!
I use a SQL DB in the full Udemy course
@@laithacademy that is great! I'll be sure to check it out
Hello
Thanks a lot for your time and all your efforts
Would you consider making a tutorial about GraphQL using Fastify and Mercurius ?
Thanks again
Have a nice coding day/night
thank you man. Realy!
🤩 Nicee!!!!
Any incoming content on microservices ? I really enjoy the Udemy course
That's great to hear! I would love to do a microservices course sometime in the future
pretty sad u don't have playlist.