GraphQL API with .NET 5 and Hot Chocolate

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 333

  • @81NARY
    @81NARY 4 года назад +74

    Tip: If you add a 00:00 time code in your description, then youtube will automatically add chapters to the video.

  • @OctarineFoundry
    @OctarineFoundry 2 года назад +1

    A lot of tutorials on tech topics fly over the "obvious stuff". I really appreciate that you take the time to go into the details of each step but remain concise. Great video thanks.

  • @MichaelPeto
    @MichaelPeto 3 года назад +3

    This has to be one of the best tutorials I have ever watched. Thanks for putting it together!

  • @markybolton
    @markybolton 2 года назад +1

    I love his tutorial! His teaching mannerism is so assuring and easy to follow. Best instructor ever!

  • @hirisraharjo
    @hirisraharjo 3 года назад +4

    Just finished reading a book yesterday about creating REST API in .Net core, and now youtube algorithm bring me to the author himself.
    conclusion: this guy is a superb teacher!

    • @robertmrobo8954
      @robertmrobo8954 3 года назад

      What's the name of the book brother..?

    • @karkli1874
      @karkli1874 3 года назад

      @@robertmrobo8954 It's linked in the description: The Complete ASP.NET Core 3 API Tutorial

  • @oswaldumeh
    @oswaldumeh 3 года назад +2

    This is the best GraphQL tutorial yet I have watched online. Very detailed with well-explained concepts. Thanks for this awesome work!

  • @sarinasalim2494
    @sarinasalim2494 2 года назад +1

    One of the best tutorials I’ve seen. Coming from zero knowledge of graphql I feel at least now I understand the concepts backed by hands on examples. Thank you. Count me in as a new subscriber.

  • @namanvohra8262
    @namanvohra8262 2 года назад +2

    There is no doubt that this is the best tutorial out there. Thank you so much Les for also taking the time to explain the things clearly. You just gained a new subscriber.

  • @Mattzard
    @Mattzard 3 года назад +1

    I have just completed this video and can confirm this was such a great introduction to GraphQL, thank you so much! I agree with another commenter that another video on the advised or suggested ways to query this new API from a frontend perspective would be great too. Thanks again!

  • @sharifabdullahrifatsoftwar9816
    @sharifabdullahrifatsoftwar9816 3 года назад

    The Most effective Tutorial I have ever seen on GraphQL. I was thinking of buying a tutorial in Udemy. Now I think I don't need it. Thanks a lot

  • @michaelpalgon3459
    @michaelpalgon3459 2 года назад

    Outstanding tutorial. Love how you hand code everything instead of magically pasting in code.

  • @andreistelian9058
    @andreistelian9058 Год назад +2

    For someone who is doing this app in dotnet 7 and has errors after creating the PlatformType, you need to put the [Parent[ attribute in front of the GetCommands method from the Resolvers class.
    This is a breaking change in the framework of HotChocolate

  • @AndresZumelzu
    @AndresZumelzu 3 года назад +11

    Hi Les, thanks for this great course! I didn't finish it yet, I'm on my way :). I would like to mention one thing I found when running a profiler for sql server: when using ObjectTypes (for Platform and Commands) and doing the heavy lifting manually, there are three queries executed against the database (one per platform id). But if I use the default behavior, there is only one. I think that's worth noting. Thanks!!

  • @ankurmittal9734
    @ankurmittal9734 4 года назад +3

    Was missing you and your awesome way of teaching.. hope will get many more this year..

  • @geeksy2278
    @geeksy2278 3 года назад

    Currently we are switching our tech stack and your videos are pure gold. Thank you very much

  • @trpeel27
    @trpeel27 3 года назад +1

    This was incredible. Thank you for such detail. This is the only example I've found that walked you through end-to-end. It was perfect!

  • @PlayRiteProductions
    @PlayRiteProductions 4 года назад +6

    Welcome back bro! Keep up the awesome content! You're a great teacher.

  • @imankurgoel
    @imankurgoel Год назад

    I have not seen such a detailed video on GraphQL. Trainer knowledge is very good.

  •  3 года назад +2

    I just want to say: This is awesome!!!

  • @snehgour9711
    @snehgour9711 2 года назад

    Always enjoy your all tutorials !!!!!!😀

  • @joaofranco6779
    @joaofranco6779 3 года назад +2

    Very easy to understand, great voice, great visuals and great pace! Overall, a very good tutorial that is easy to digest and very much worthwhile going through. I only had one slight issue when I couldn't get Voyager to work, other than that every part was flawlessly explained and shown!

    • @toddnedd2138
      @toddnedd2138 3 года назад +4

      if you are using package GraphQL.Server.Ui.Voyager Version="5.0.1" or higher the following should help:
      using GraphQL.Server.Ui.Voyager;
      public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
      ...
      app.UseGraphQLVoyager(new VoyagerOptions(){
      GraphQLEndPoint = "/graphql"
      });
      }
      default voyager endpoint is "ui/voyager"
      cheers.

    • @rafaelskiba3854
      @rafaelskiba3854 3 года назад +4

      @@toddnedd2138 This does not work for me.
      But this:
      app.UseGraphQLVoyager(new VoyagerOptions(), "/graphql-voyager");
      You can also omit the path. Then the GraphQL Voyager is accessible via its default: /ui/voyager

    • @fieryscorpion
      @fieryscorpion 3 года назад +1

      @@rafaelskiba3854 I was googling the hell out of it and still unable to figure it out. Thank you so so much!

  • @davewasthere
    @davewasthere 3 года назад +1

    These are such high quality videos, I love it!

  • @code3658
    @code3658 3 года назад +6

    Nice tutorial. I learned a lot. Please create a video about authentication and authorization stuff with GraphQL.

  • @deepakkumar-cl6hs
    @deepakkumar-cl6hs 2 года назад +1

    This is Superb Tutorial, Well presented . Les hat off to your effort and passion in teaching every bit of details in such a structure and easy format. I loved this video and have become fan of your channel.
    Keep up the good work .
    Many thanks

  • @fieryscorpion
    @fieryscorpion 3 года назад +17

    For someone struggling with the voyager setup, this is how it worked for my version of 5.0.2:
    app.UseGraphQLVoyager(new VoyagerOptions()
    {
    GraphQLEndPoint = "/graphql",
    }, "/graphql-voyager");

    • @Mattzard
      @Mattzard 3 года назад +2

      Thanks for this - the "Path" property also doesn't exist, it seems to be set as default to this:
      - localhost:5000/ui/voyager

    • @henryuta
      @henryuta 3 года назад +1

      THANKS! I burned an hour on this and could not move on.

    • @naufilshaikh09
      @naufilshaikh09 3 года назад

      Thanks

    • @Brickscrap
      @Brickscrap 3 года назад +1

      Thank you for this!

    • @Merilix2
      @Merilix2 2 года назад

      I guess the now supposed way is:
      after
      endpoints.MapGraphQL();
      insert
      endpoints.MapGraphQLVoyager("/graphql-voyager");

  • @ArtyomAvetisyan5
    @ArtyomAvetisyan5 3 года назад

    Finally a guy who is happy with 2020!

  • @cutthecode2784
    @cutthecode2784 3 года назад

    awesome !! OMG... I watched the whole 3:45 hours continuously without getting tired

  • @OdieFighter
    @OdieFighter 4 года назад

    i'm not a dotnet developer but i was thrown headfirst into it cause of work, ur videos on it and the way u explain things really helped me a ton!
    i just wanna say thanks for making them ~!

  • @JarredJ
    @JarredJ 2 года назад

    Les, Thank you so much for your informative tutorials. I did the one on API and Microservices and now GraphQL API and they are so helpful. Your teaching style is great and I have learnt a lot from you.

  • @tuberklz
    @tuberklz 3 года назад

    subscriptions blew my mind. and also i am very opt in to the idea of starting type-less. after agreeing on the basics with the business representatives, one can quickly provide added complexity.
    kudos man. thanks for all the effort you put on this.

  • @АртёмАртём-ю4ы
    @АртёмАртём-ю4ы 3 года назад +2

    Thank you from Russia, with love

  • @2005bgva
    @2005bgva 3 года назад +1

    Les it is fantastic to see you again on youtube.

  • @martinkhachatryan3394
    @martinkhachatryan3394 2 года назад

    Believe it or not, Mr. Jackson, you built my career, thank you.

  • @karinn7163
    @karinn7163 3 года назад +1

    Amazing tutorial, very clear, thank you

  • @orochinagi1111
    @orochinagi1111 2 года назад

    thanks Les!!!!!!!!!! im subbed to your Patreon now :) next stop: microservices course! keep em comin baby

  • @dzsukov
    @dzsukov 3 года назад +21

    Amazing tutorial, thank you! What would be awesome is to include a section (or a separate video) on how to handle authorization in GraphQL (both "endpoint-wide" and also user by user/object by object). I know it's a whole different complex can of worms and lots of work, however that's the last piece of info for me to be able to "ditch" REST :) Any chance you would be up to something like that?

  • @lambo1707
    @lambo1707 4 года назад +6

    dev from philippines, your content helps me a lot

  • @dallasthornton2374
    @dallasthornton2374 2 года назад

    This is quality work. It's sat in my list for the last year and I finally got around to watching it since I'm starting to mess around with GraphQL and it's still pretty helpful even though I'm not using Hot Chocolate

  • @marcoalfaroazofeifa
    @marcoalfaroazofeifa 3 года назад

    I believe I will become a fan of your presentations Les. Great work!

  • @martinnjoroge9789
    @martinnjoroge9789 3 года назад +1

    Thanks for the tutorial. Watched and implemented to the end. Everything worked fine. Thanks once again @Les Jackson

  • @rc2893
    @rc2893 3 года назад +18

    I was getting errors using the ResolveWith in the two Type classes, what fixed the issue was adding the [Parent] decorator to the first argument in the two Resolvers classes.
    public Platform GetPlatform([Parent] Command command, [ScopedService] AppDbContext context) and
    public IQueryable GetCommands([Parent] Platform platform, [ScopedService] AppDbContext context)
    Hope this helps anyone doing this currently.
    This is with HotChocolate version 12.0.1

    • @mps4856
      @mps4856 3 года назад

      Got the same, thanks !

    • @ANTONZUBAREV
      @ANTONZUBAREV 3 года назад

      and I

    • @유광수-v1q
      @유광수-v1q 3 года назад

      I spent two days, and no result. But, THANK YOU ^^

    • @sameergsr
      @sameergsr 3 года назад

      Thanks! you saved a lot of my efforts. I got stuck with these errors

    • @ProgrAmadaMente
      @ProgrAmadaMente 3 года назад

      Thank you so much!

  • @captainmujheri
    @captainmujheri 3 года назад

    oh man, You made creating API in .net core so easy by making this video

  • @andrewobrian441
    @andrewobrian441 3 года назад +2

    What a mad lad! Thank you so much for these great videos, learning with you is so much easier 😊 👍👍

  • @raj8844
    @raj8844 4 года назад +3

    Great to hear your voice 🙂🙂

    • @binarythistle
      @binarythistle  4 года назад +1

      Thanks Rajesh - great to be back!

    • @martinnjoroge9789
      @martinnjoroge9789 3 года назад +1

      Hi @@binarythistle. I noticed that GraphQL.Server.Ui.Voyager version 5.0.2 does not have option of new GraphQLVoyagerOptions() in the Configure method in Startup.cs. I had to use the version you;re using

  • @bijulal3906
    @bijulal3906 3 года назад

    Hi Les, Nice presentation . Feels like a live session. Thank you.

  • @dyakobaram
    @dyakobaram 4 года назад +2

    nice to see you come back :)

    • @binarythistle
      @binarythistle  4 года назад +1

      Great to be back finally! (Taken a while...)

  • @orochinagi1111
    @orochinagi1111 2 года назад

    great song at the end too :) perfect sized course

  • @panirajn
    @panirajn 3 года назад

    Thanks a lot for the teaching in simplest way!

  • @georgcordes5909
    @georgcordes5909 3 года назад

    Hi Les! Love your voice, your beart, the accent and the way you're teaching us all that interesting stuff! Keep up your good work! For me it is "learning with a smile" and makes it easier then elsewhere! Greetings from Hamburg to Melbourne!

  • @arunnaveenkumar
    @arunnaveenkumar 4 года назад +1

    Thanks for Tutorial. Love way of your teaching 👍

  • @darenbaker4569
    @darenbaker4569 3 года назад +2

    I love graphql but having done work with graphql.net hot chocolate is far better and I did a demo with a legacy app and got up and running in a day I love banana cake pop as the testing and info ui. Its definitely something I will be promoting. Thank you for your videos it helps so much

  • @vladyslav.papirnyi
    @vladyslav.papirnyi 3 года назад

    Good tutorial for GraphQL novices. Thank you

  • @AmazingTechwithSuhas
    @AmazingTechwithSuhas 2 года назад

    Thank you for such a superb starter video. Hot Chocolate seems promising

  • @vamvdotnet
    @vamvdotnet 2 года назад

    In this video, I learned a lot from you, Les. Thank you very much!

  • @alikemalbilgili9185
    @alikemalbilgili9185 Год назад

    I am not tend to comment but this tutorial was Epic. There is no doubt !

  • @RomanSuska
    @RomanSuska 4 года назад

    Good timing, was just looking for some materials to learn graphql. I will definitely take your course. Good to see you again :)

  • @ehl-12
    @ehl-12 3 года назад +1

    Just started your Udemy course. Love it!

  • @rabinbyanjankar1310
    @rabinbyanjankar1310 3 года назад +9

    This is really great presentation. Would be great if you could include the pagination support as well.

  • @programmingskills3404
    @programmingskills3404 3 года назад

    you teach very well man

  • @ifanzalukhu97
    @ifanzalukhu97 3 года назад

    Thanks Les Jackson for awesome tutorial.

  • @SajidAliSoftwareEngineer
    @SajidAliSoftwareEngineer 2 года назад

    Amazing and detailed video, I learn first-time Graphql
    Thank you so much Les Jackson. ❤️

  • @neilgilroy1629
    @neilgilroy1629 3 года назад

    Thanks so much for this great video. Merry Christmas!

  • @Etheregod
    @Etheregod 3 года назад

    I love your tutorials. Thank you for sharing this quality videos for free here. Actually you are helping me a lot with my APIs and I am falling in love with the backend part of programming!

  • @josbexerr5166
    @josbexerr5166 4 года назад

    Gracias Mister Lest Jackson por compartir conocimiento.......saludos de los andes peruanios

  • @邹鹏诚
    @邹鹏诚 2 года назад

    very useful, thanks for this great course!

  • @wilfredoguardado2712
    @wilfredoguardado2712 3 года назад

    Thanks for taking your time to make up learning in a easy way!
    Definitely I recommend this video!

  •  3 года назад

    This is a great one! Thanks, Les.

  • @naufilshaikh09
    @naufilshaikh09 3 года назад

    Woaah, amazing video. learned lots of new things. Thanks Les.

  • @lemurza5236
    @lemurza5236 3 года назад

    Your content is the best. Thank you

  • @zulhishamtan4308
    @zulhishamtan4308 3 года назад

    Thank you Les, this is awesome, your step by step tutorial is really precise as you type while you going along. I have learned a lot and I like GraphQL.

  • @NguyenNguyen-ly2yt
    @NguyenNguyen-ly2yt Год назад

    Thank you for your course!

  • @oleksiylevenets8161
    @oleksiylevenets8161 3 года назад

    Awesome tutorial!!! Thank you very much!!!!

  • @peculiarpeculiar2504
    @peculiarpeculiar2504 2 года назад

    Intro always epic.

  • @BalooCSGO69
    @BalooCSGO69 3 года назад

    Im in the middle of the video atm and I just stopped to say you are fucking legend bro.

  • @raouf2me
    @raouf2me 4 года назад

    Offf, Finally a new video on my favorite channel👏🤩

  • @nestormatias217
    @nestormatias217 3 года назад

    Thank you Les it was an awesome to start on GraphQL i learned a lot very greatfull with your videos they are large but they worth it

  • @khalilaibrahim1278
    @khalilaibrahim1278 3 года назад

    Thanks for this amazing tutorial

  • @KhanhNguyen-pq6kn
    @KhanhNguyen-pq6kn 3 года назад

    Many thanks for really helpful and detailed education content... took a lot from this tutorial and git repo

  • @serkanprlk
    @serkanprlk Год назад

    Amazing. Thank you for your help pretty much

  • @OvRaf
    @OvRaf 3 года назад

    amazing tutorial! thanks a ton, Les!

  • @bhuvaneshnarayanasamy3153
    @bhuvaneshnarayanasamy3153 3 года назад

    Fantastic production and awesome tutorial, I followed along and created the same, very much apricated for your efforts.

  • @jamiesimm2735
    @jamiesimm2735 3 года назад

    Fantastic video as always Les

  • @dyakobaram
    @dyakobaram 4 года назад +4

    do you have any plan on using dapper on your next project?

  • @eliassal1
    @eliassal1 3 года назад +1

    Great, wondeful, easy to absorb and understand topic. I love your method of training others. I think it would be great if you show at the end for 10 minutes how to call all those GraphQl services (Platform, Command) from a .Net client or an asp.net mvc web page, that would be great if you can add this part, well done and thanks for making this available for the community.

    • @KittFanNr1
      @KittFanNr1 3 года назад

      Yes, that would be great. I was also thinking about the graphql response, its very dynamic - How would you deal with this in a .net application?

    • @eliassal1
      @eliassal1 3 года назад +1

      @@KittFanNr1 I googled but was not able to figure it out for this code, they were all specific and not similar to what Les showed us, maybe he can help us with a 15 minutes video if he has some availability :-)

  • @tyn3561
    @tyn3561 3 года назад

    Great tutorial mate! I am going to buy your Webhooks tutorial. Thanks a lot!

  • @facilitatecollaboration7829
    @facilitatecollaboration7829 3 года назад

    It was fantastic, really helpful!

  • @sirparcival9500
    @sirparcival9500 3 года назад

    Awesome tutorial. Thank you

  • @vitaliik8315
    @vitaliik8315 3 года назад

    I used hot chocolate - it's awesome! Thanks for video!

  • @bencejuhasz2938
    @bencejuhasz2938 3 года назад

    Thank you very much Les for this awesome course!

  • @HaoNguyen-km9xj
    @HaoNguyen-km9xj 3 года назад +1

    Make more and more video about API and GraphQL please... It's very useful,... very useful....

  • @IVerges
    @IVerges 3 года назад

    Excellent video. Keep like this dude.

  • @NikosMiliotis
    @NikosMiliotis 3 года назад

    Les, that was an amazing Course. Thanks you very much.

  • @sreeram5152
    @sreeram5152 3 года назад

    Really , Amazing stuff , Good Work ..

  • @ReyAlexam
    @ReyAlexam 8 месяцев назад

    Thank you Les !

  • @rmclean101
    @rmclean101 3 года назад

    Awesome, thank you for another wonderful video!

  • @jurekwoz
    @jurekwoz 3 года назад

    Awesome video! Thanks!

  • @smthsmth1939
    @smthsmth1939 3 года назад +1

    Awesome!

  • @dembasiby
    @dembasiby 3 года назад

    Waiting this evening to watch the video, but Les, thank you, and Keep up the good work.

  • @christinejoy436
    @christinejoy436 3 года назад

    Thanks Les Jackson!!!

  • @homeofcreation
    @homeofcreation 2 года назад

    Excellent video had to google a breaking change in the HotChocolate 12 update in the Platform and CommandsTypes code, but this is a minor issue. I have implemented Dataloaders which I definitely recommend. Great Job! Thanks!!