GraphQL Tutorial For Beginners - Apollo Server Express Tutorial

แชร์
ฝัง

ความคิดเห็น • 102

  • @simonmassey8850
    @simonmassey8850 2 ปีที่แล้ว +1

    Great example of how to create a GraphQL sever. Thanks!

    • @simonmassey8850
      @simonmassey8850 2 ปีที่แล้ว +1

      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. 🎉

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว

      Thank you Simon! Really appreciate the support you gave me today :)

  • @rafaelmelope
    @rafaelmelope 2 ปีที่แล้ว +1

    Parabéns meu velho! vc tem uma didática top! tem futuro d+. acredite no processo!

  • @kartikayikkathil7435
    @kartikayikkathil7435 2 ปีที่แล้ว +1

    That helped al lot to get started with apollo server.
    Thanks.

  • @elijahromer6544
    @elijahromer6544 3 ปีที่แล้ว +3

    Would be great if you could post a link to the code. Great video!

  • @vikasni95
    @vikasni95 3 ปีที่แล้ว +3

    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 👌😊

  • @its_Akhtar
    @its_Akhtar ปีที่แล้ว

    Thank you so much brother ❤spending that 28 minutes worth it

  • @saviomartin7
    @saviomartin7 3 ปีที่แล้ว +3

    Can I get the GitHub code?

  • @abhishek.rathore
    @abhishek.rathore 3 ปีที่แล้ว +1

    27:01 Paulo is 15 and is married. I wonder what country he lives in. Awesome video BTW!

  • @ibadetismayilov3511
    @ibadetismayilov3511 2 ปีที่แล้ว +1

    It would be freat if teach us how to fetch data from this server

  • @mihaylikvladislav795
    @mihaylikvladislav795 2 ปีที่แล้ว

    Thank god i found this video! Thank you Pedro, you save my mind) Really helpfull and good video!

  • @prasanthmanimaran5158
    @prasanthmanimaran5158 3 ปีที่แล้ว +2

    Great topic bro, keep up the good work!

  • @maxmaksum4673
    @maxmaksum4673 3 ปีที่แล้ว +1

    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 🙏🙏

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      Really happy you liked it! I will probably make a nextjs video soon!

  • @gokilaindu9862
    @gokilaindu9862 3 ปีที่แล้ว +1

    I think you haven't mention the link in description for basic types syntax for graphql. Can you please mention it?

  • @SLP1177
    @SLP1177 3 ปีที่แล้ว +1

    Very nice tutorial. Well explaned. Thank you Pedro.

  • @skverskk
    @skverskk 3 ปีที่แล้ว +1

    Well done and easy to understand.

  • @movakalin5333
    @movakalin5333 2 ปีที่แล้ว

    Thank you, that was a nice intro

  • @djimenez017
    @djimenez017 2 ปีที่แล้ว

    GREAT VIDEO! Short and to the point

  • @jissjose1228
    @jissjose1228 2 ปีที่แล้ว

    awesome. thanks now i got clear basic idea

  • @yorkitca
    @yorkitca 3 ปีที่แล้ว +2

    Love your videos!
    Keep up the great work.
    Maybe an ORM + GraphQL video next?
    Sequelize, TypeORM or Prisma and Apollo in JS?

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      Thank you! I have a video series using TypeORM and GraphQL if you are interested! I like using TypeORM and Express-GraphQL / Apollo

  • @RobertCastilloC
    @RobertCastilloC 3 ปีที่แล้ว

    Thanks bro I feel now I have a good understanding of graphql

  • @paulryan6269
    @paulryan6269 2 ปีที่แล้ว

    Thank you this was very helpful.

  • @EdgarVicent
    @EdgarVicent 3 ปีที่แล้ว +1

    Excellent video ...congrats!

  • @darshanajayarathna9396
    @darshanajayarathna9396 2 ปีที่แล้ว

    Thanks Bro!!!!!!!!!!! I learned lot!!!!!!!!!!

  • @pramodkharade5373
    @pramodkharade5373 3 ปีที่แล้ว +1

    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

  • @mikealejandro3938
    @mikealejandro3938 3 ปีที่แล้ว +3

    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 (:

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      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

  • @Kira-gc2jg
    @Kira-gc2jg 2 ปีที่แล้ว

    I have a question sir, why should we use apollo-server-express if the features in apollo-server are enough for a graphql project?

  • @emutxuka
    @emutxuka 3 ปีที่แล้ว +1

    I prefer the origin graphql than put type definition in ` `
    Thanks for the knowledge

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว

      I agree its more readable, this way its faster to write but its a bit annoying to debug!

  • @franbonafina
    @franbonafina 2 ปีที่แล้ว

    Thanks for your work. Hope I help. I a new subscriber here.

  • @amritvasyal3923
    @amritvasyal3923 2 ปีที่แล้ว

    great work...👍

  • @romimaximus
    @romimaximus 3 ปีที่แล้ว +1

    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
      @PedroTechnologies  3 ปีที่แล้ว +1

      Hahaha they do the same thing so if you find Express-GraphQL easier, definitely go for that!

    • @romimaximus
      @romimaximus 3 ปีที่แล้ว

      @@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...😂😂

  • @abhishekchandel4244
    @abhishekchandel4244 2 ปีที่แล้ว

    excellent, easy to grasp.

  • @aqibmaroof42
    @aqibmaroof42 3 ปีที่แล้ว

    how can we use graphql, appolo server and mongodb as backend for our front end application

  • @Moist_yet_Crispy
    @Moist_yet_Crispy 3 ปีที่แล้ว

    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.

    • @lanaolushola8894
      @lanaolushola8894 ปีที่แล้ว

      Apollo GraphQL is the name (for vscode)

  • @romanmunar
    @romanmunar 3 ปีที่แล้ว +2

    On version 2.24.0 of apollo-server-express you now need to install graphql.

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      Interesting, I might do another video on it!

    • @romanmunar
      @romanmunar 3 ปีที่แล้ว

      @@PedroTechnologies YES!!! also cover more tools like codegen and type gql. I always recommend leigh halliday and your channel to my colleagues and students.

  • @RobertCastilloC
    @RobertCastilloC 3 ปีที่แล้ว

    We cannot assign a type as parameter of a mutation to avoid writing all the params again?

  • @FlintCode
    @FlintCode 2 ปีที่แล้ว +1

    How am I supposed to execute a query without the playground???

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว

      I have some tutorials where I show how to do this in react :)

  • @jkshobby1
    @jkshobby1 2 ปีที่แล้ว

    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.

  • @vr4836
    @vr4836 2 ปีที่แล้ว

    Thanks! Aweeeesoooommmeee !!!

  • @jandurcak8500
    @jandurcak8500 3 ปีที่แล้ว +1

    Thank you for awesome videos! Really great content.
    q: how to delete user?

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว

      Deleting is also a mutation, so it depends on your db. Just create a mutation and write the logic to resolve and delete

    • @maciej9855
      @maciej9855 3 ปีที่แล้ว

      Create mutation and in resolver use i.e. ES6 filter to remove item from collection, which essentially is deleting

    • @jandurcak8500
      @jandurcak8500 3 ปีที่แล้ว +1

      Thank you, i have used “findByIdAndDelete()”

  • @taranewstime6909
    @taranewstime6909 3 ปีที่แล้ว +1

    Hi bro how are you?
    Please make video over next.js

  • @pupil_1
    @pupil_1 ปีที่แล้ว

    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

  • @janithasampathbandara8554
    @janithasampathbandara8554 3 ปีที่แล้ว +1

    100th like from Sri Lanka :)

  • @ramanathanganapathy
    @ramanathanganapathy 3 ปีที่แล้ว

    Great video

  • @ashwanipayal8658
    @ashwanipayal8658 3 ปีที่แล้ว +1

    Great 👍

  • @kinoshan591
    @kinoshan591 3 ปีที่แล้ว +1

    Bro what is the difference apollo client and apollo server?

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว

      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.

    • @kinoshan591
      @kinoshan591 3 ปีที่แล้ว

      @@PedroTechnologies thank you bro 😊

  • @swiveiproduction9192
    @swiveiproduction9192 3 ปีที่แล้ว +1

    could you make a video on deno?

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว

      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!

  • @RobertCastilloC
    @RobertCastilloC 3 ปีที่แล้ว

    A query can have paremeters?

  • @MasterTeeee
    @MasterTeeee 3 ปีที่แล้ว +1

    8:55 - "I'll put the name of the extension in the description"...
    *Looks at description*
    :'(

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      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!

  • @ganeshk8682
    @ganeshk8682 3 ปีที่แล้ว +1

    Thanks

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว +1

    awesome

  • @ChadE1020
    @ChadE1020 2 ปีที่แล้ว

    could not get this to work, should provide the default code, seem that update may have broken the way this runs.

  • @AMR-or1ws
    @AMR-or1ws 3 ปีที่แล้ว +1

    gql literal VS .graphql files What is different ?

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว

      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.

    • @AMR-or1ws
      @AMR-or1ws 3 ปีที่แล้ว

      @@PedroTechnologiesthanks, yes i use graphql-tools

  • @marco_di
    @marco_di 2 ปีที่แล้ว

    for beginners??? sure, of course! If the beginner knows how to create the project and where to get the package.json from

  • @AmodShindeDev
    @AmodShindeDev 3 ปีที่แล้ว +2

    Paulo is 15 and married!

    • @PedroTechnologies
      @PedroTechnologies  3 ปีที่แล้ว +1

      Yeah hahaha he is actually my roommate in real life but he is not 15 or married

  • @rfqm8638
    @rfqm8638 3 ปีที่แล้ว +1

    Hi Pedro, can you share your Discord's invite URL? Thanks

  • @harimohanthakur727
    @harimohanthakur727 2 ปีที่แล้ว

    great

  • @NERO-ez1mn
    @NERO-ez1mn 3 ปีที่แล้ว

    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

  • @mansoormohammadali7001
    @mansoormohammadali7001 3 ปีที่แล้ว

    nice video

  • @mineturtle1841
    @mineturtle1841 3 ปีที่แล้ว

    thanks

  • @amareswarsahu743
    @amareswarsahu743 3 ปีที่แล้ว +1

    May be you should connect with an actual DB. People who learn graphql must be knowing what a DB is.

  • @samiyemane4305
    @samiyemane4305 2 ปีที่แล้ว +1

    The real question is why is Paulo married at 15 😂

  • @marvinsequera
    @marvinsequera 3 ปีที่แล้ว

    Please npm || yarn -D i nodemon

  • @maidamaqbool3191
    @maidamaqbool3191 2 ปีที่แล้ว

    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 });
    })();