I notice that you said having to use gql` blah ` was something tricky. yet that is creating a ton of logic that to make a GraphQL server in Java there is a lot more boilerplate to write. So that little trick looks like a really cool feature to me. 🎉
Wow thts an amazing explanation brother ❤️. & i would like to suggest you tht keep same kind of screen size for ur tutorial, because isaw many youtubers who keep very small zoom of screen,This is perfect plz keep this same zoom screen always thts enough 👌😊
brother...you are always the best in explaining stuff. Finally i get the graphql. it would be awesome if you could make tutorial with next js. thank you 🙏🙏
Nice tutorial and worth to watch. Could you please , come up with nodejs and mongodb , graphql example with mini project like product,category and order and cart
Broh, i just finished a MERN project, and i was looking for learning graphQL, you're the greatest ! Do you think that you can make a video with fronted also? like, react, express, node, graphQL, and mongo or postgress whatever, it can be simple and it would be dope ! Of course, if it is not too much to ask (:
Glad to hear I am helping! I have recently posted a 4 video series using React, NodeJS, GraphQL, TypeScript and MySQL. In that video I use another graphql library called express-graphql! I also have a video on connecting react to a graphql API! Here are the links: th-cam.com/video/YyUWW04HwKY/w-d-xo.html and th-cam.com/play/PLpPqplz6dKxXRJLbOLozaQCB5Py4CEpzS.html
Thankx Pedro, but this GraphQl, is so confusing !! and trying to make sense out of it !! i gonna have to watch this video a few 20 times, to get into my brain..lol...
@@PedroTechnologies Ahhh ok, now i understand !! .. there's 2 of then !!, there's "express-graphql" and there´s "apollo-server-express"..!!! hmmm 🤔.... now i got it ...well i gonna try "Apollo-Server-Express" , and later ill try "express-graphql"..to see the diference...thankx Pedro, you are the man !!....now i know why was confused !!...lol...😂😂
@@PedroTechnologies YES!!! also cover more tools like codegen and type gql. I always recommend leigh halliday and your channel to my colleagues and students.
Thanks for making this video, Have to install graphql separately, its not ship with apollo any longer. Getting this error Error: graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.
Error: You must `await server.start()` before calling `server.applyMiddleware()` i 'm getting this error while doing npm start can anyone help to resolve this problem
Hey! So Apollo-Client is a React library which allows you to integrate a graphql api into your react application. Apollo server is used to create the graphql api.
Hahaha I edit / post my videos right before I sleep so I fell asleep while posting so many times lmao I forgot this time, but thank you for reminding! Here is the name: Apollo GraphQL. It changes the look of the text inside of backticks!
You can use both! I like using graphql files as well because it allows some autocompletion, however you need to convert it in order to make it work with apollo-server-express.
can you make a more detailed vid. i mean an actual graphql database for beginners. so we can actually know how to really setup a real world application please. and a video uploading
is tutorial ka faida koi nahi ha itnay errorrrrrrrs..... atay hain Description:ap na typeDefs to as an object export kiya huwa ha =>module.exports = {typeDefs} =>error:typeDefs must contain only strings, documents, schemas, or functions, got object) =>corrected: module.exports = typeDefs Decription:or server ko start he nahi kiya middleware call karnay sa pahlay =>line 1:const server = new ApolloServer({ typeDefs, resolvers }); =>line 2:server.applyMiddleware({ app }); =>error:You must `await server.start()` before calling `server.applyMiddleware()`) =>corrected: const server = new ApolloServer({ typeDefs, resolvers }); (async () => { await server.start(); server.applyMiddleware({ app }); })();
Great example of how to create a GraphQL sever. Thanks!
I notice that you said having to use gql` blah ` was something tricky. yet that is creating a ton of logic that to make a GraphQL server in Java there is a lot more boilerplate to write. So that little trick looks like a really cool feature to me. 🎉
Thank you Simon! Really appreciate the support you gave me today :)
Parabéns meu velho! vc tem uma didática top! tem futuro d+. acredite no processo!
That helped al lot to get started with apollo server.
Thanks.
Would be great if you could post a link to the code. Great video!
Wow thts an amazing explanation brother ❤️.
& i would like to suggest you tht keep same kind of screen size for ur tutorial, because isaw many youtubers who keep very small zoom of screen,This is perfect plz keep this same zoom screen always thts enough 👌😊
Thanks for the tip!
Thank you so much brother ❤spending that 28 minutes worth it
Can I get the GitHub code?
27:01 Paulo is 15 and is married. I wonder what country he lives in. Awesome video BTW!
It would be freat if teach us how to fetch data from this server
Thank god i found this video! Thank you Pedro, you save my mind) Really helpfull and good video!
Great topic bro, keep up the good work!
Appreciate it! Thank you!
brother...you are always the best in explaining stuff. Finally i get the graphql. it would be awesome if you could make tutorial with next js. thank you 🙏🙏
Really happy you liked it! I will probably make a nextjs video soon!
I think you haven't mention the link in description for basic types syntax for graphql. Can you please mention it?
Very nice tutorial. Well explaned. Thank you Pedro.
Thank you! Glad you liked it!
Well done and easy to understand.
Thank you! Really happy to hear!
Thank you, that was a nice intro
GREAT VIDEO! Short and to the point
awesome. thanks now i got clear basic idea
Love your videos!
Keep up the great work.
Maybe an ORM + GraphQL video next?
Sequelize, TypeORM or Prisma and Apollo in JS?
Thank you! I have a video series using TypeORM and GraphQL if you are interested! I like using TypeORM and Express-GraphQL / Apollo
Thanks bro I feel now I have a good understanding of graphql
Thank you this was very helpful.
Excellent video ...congrats!
Glad you liked it!
Thanks Bro!!!!!!!!!!! I learned lot!!!!!!!!!!
Nice tutorial and worth to watch. Could you please , come up with nodejs and mongodb , graphql example with mini project like product,category and order and cart
Great suggestion!
Broh, i just finished a MERN project, and i was looking for learning graphQL, you're the greatest !
Do you think that you can make a video with fronted also? like, react, express, node, graphQL, and mongo or postgress whatever, it can be simple and it would be dope ! Of course, if it is not too much to ask (:
Glad to hear I am helping! I have recently posted a 4 video series using React, NodeJS, GraphQL, TypeScript and MySQL. In that video I use another graphql library called express-graphql! I also have a video on connecting react to a graphql API! Here are the links: th-cam.com/video/YyUWW04HwKY/w-d-xo.html and th-cam.com/play/PLpPqplz6dKxXRJLbOLozaQCB5Py4CEpzS.html
I have a question sir, why should we use apollo-server-express if the features in apollo-server are enough for a graphql project?
I prefer the origin graphql than put type definition in ` `
Thanks for the knowledge
I agree its more readable, this way its faster to write but its a bit annoying to debug!
Thanks for your work. Hope I help. I a new subscriber here.
great work...👍
Thankx Pedro, but this GraphQl, is so confusing !! and trying to make sense out of it !! i gonna have to watch this video a few 20 times, to get into my brain..lol...
Hahaha they do the same thing so if you find Express-GraphQL easier, definitely go for that!
@@PedroTechnologies Ahhh ok, now i understand !! .. there's 2 of then !!, there's "express-graphql" and there´s "apollo-server-express"..!!! hmmm 🤔.... now i got it ...well i gonna try "Apollo-Server-Express" , and later ill try "express-graphql"..to see the diference...thankx Pedro, you are the man !!....now i know why was confused !!...lol...😂😂
excellent, easy to grasp.
how can we use graphql, appolo server and mongodb as backend for our front end application
Awesome video! This helped alot. Did you ever find that vs code extension you referenced? If not no big just didn't see it there.
Apollo GraphQL is the name (for vscode)
On version 2.24.0 of apollo-server-express you now need to install graphql.
Interesting, I might do another video on it!
@@PedroTechnologies YES!!! also cover more tools like codegen and type gql. I always recommend leigh halliday and your channel to my colleagues and students.
We cannot assign a type as parameter of a mutation to avoid writing all the params again?
How am I supposed to execute a query without the playground???
I have some tutorials where I show how to do this in react :)
Thanks for making this video, Have to install graphql separately, its not ship with apollo any longer. Getting this error Error: graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.
Thanks! Aweeeesoooommmeee !!!
Thank you for awesome videos! Really great content.
q: how to delete user?
Deleting is also a mutation, so it depends on your db. Just create a mutation and write the logic to resolve and delete
Create mutation and in resolver use i.e. ES6 filter to remove item from collection, which essentially is deleting
Thank you, i have used “findByIdAndDelete()”
Hi bro how are you?
Please make video over next.js
Absolutely, should make one soon!
Error: You must `await server.start()` before calling `server.applyMiddleware()` i 'm getting this error while doing npm start can anyone help to resolve this problem
100th like from Sri Lanka :)
Thank you!
Great video
Great 👍
Bro what is the difference apollo client and apollo server?
Hey! So Apollo-Client is a React library which allows you to integrate a graphql api into your react application. Apollo server is used to create the graphql api.
@@PedroTechnologies thank you bro 😊
could you make a video on deno?
I haven't dealt with deno a lot yet! I learned the basics (which I can make a video on if people are in it), but not the more advanced stuff!
A query can have paremeters?
8:55 - "I'll put the name of the extension in the description"...
*Looks at description*
:'(
Hahaha I edit / post my videos right before I sleep so I fell asleep while posting so many times lmao I forgot this time, but thank you for reminding! Here is the name: Apollo GraphQL. It changes the look of the text inside of backticks!
Thanks
Thank you so much Ganesh!
awesome
Thank you!
could not get this to work, should provide the default code, seem that update may have broken the way this runs.
gql literal VS .graphql files What is different ?
You can use both! I like using graphql files as well because it allows some autocompletion, however you need to convert it in order to make it work with apollo-server-express.
@@PedroTechnologiesthanks, yes i use graphql-tools
for beginners??? sure, of course! If the beginner knows how to create the project and where to get the package.json from
Paulo is 15 and married!
Yeah hahaha he is actually my roommate in real life but he is not 15 or married
Hi Pedro, can you share your Discord's invite URL? Thanks
discord.gg/5aaWSRrskg
great
can you make a more detailed vid. i mean an actual graphql database for beginners. so we can actually know how to really setup a real world application please. and a video uploading
nice video
thanks
May be you should connect with an actual DB. People who learn graphql must be knowing what a DB is.
Exactly
The real question is why is Paulo married at 15 😂
Shit happens lmaoo
Please npm || yarn -D i nodemon
is tutorial ka faida koi nahi ha itnay errorrrrrrrs..... atay hain
Description:ap na typeDefs to as an object export kiya huwa ha
=>module.exports = {typeDefs}
=>error:typeDefs must contain only strings, documents, schemas, or functions, got object)
=>corrected: module.exports = typeDefs
Decription:or server ko start he nahi kiya middleware call karnay sa pahlay
=>line 1:const server = new ApolloServer({ typeDefs, resolvers });
=>line 2:server.applyMiddleware({ app });
=>error:You must `await server.start()` before calling `server.applyMiddleware()`)
=>corrected:
const server = new ApolloServer({ typeDefs, resolvers });
(async () => {
await server.start();
server.applyMiddleware({ app });
})();