GraphQL vs REST APIs | What's the Best Kind of API?

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

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

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

    Learn Full Stack Development: cdm.sh/fullstack

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

    bro I just love these explainer videos. You have got a unique niche of explaining everyday developer stuff with a whiteboard and in a simple manner. Keep them coming.

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

    This guy is the best! I came for WebSockets vs HTTP, and just went down a rabbithole.

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

    IMO there is no best kind of API ... they both solve problems in their own ways. What you choose depends on what you are trying to achieve in what circumstance. The video covers everything up nicely. Good job dude!!

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

    Graphql for connected data,REST for the rest.

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

    Even if know topics, I always learn new things from your videos. Thankyou keep posting.

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

    I am really liking the kind of topics you are choosing.

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

    The explanation is great but kindly manage that ring light.

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

      Now that you mention it, I can't focus at all.

  • @Sandeep-zd6dq
    @Sandeep-zd6dq 3 ปีที่แล้ว +1

    This one is really amazing now I will definitely try graphQL. Thanks for the wonderful explanation bro 😎🔥🔥🎉🎉

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

    Very Informative

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

    great job, bro, keep on

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

    The best explanation I've ever seen on GraphQL and REST API. Keep these videos coming.

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

    Hey Bro
    Good and Informative Content
    Just Remove Background Music

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

    If you use nestjs then it can autogenerate the schema for you based on code by providing some decorators for your code. Alternatively if you have a schema already you can generate types for your backend from schema file. Additionally you can generate boilerplate for grapgql object with the nest cli. Im new to graphql but enjoying it with nestjs. I think nestjs, typeorm and graphql is really powerful combo ❤️

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

    No bullshit, this guy is the best. If you want coding explained well, get an indian. Also applies to pretty much any subject.

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

    Mehul can you please make a video on how you learn things or even a twitter thread works

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

    When you gonna release Graphql whole series on codedamn?

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

    Great video 🔥 helped me alot

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

    In REST also, we can have select params in query parameter as a comma-separated string, right?

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

      in graphQL it pretty easy and graphQL creates api documentation automatically

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

      @@majidshah48 rest also creats

  • @Aditya.Santra
    @Aditya.Santra 3 ปีที่แล้ว +2

    Amazing Video ❤️

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

    I like your attitude, subbed

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

    Great video! 🔥

  • @pavankumar-gp9zx
    @pavankumar-gp9zx 3 ปีที่แล้ว

    addicted to your video's

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

    I love both GraphQL and REST API's on the back-end. The tricky part to me is on the front-end. Apollo Client with React is complex setting up the Cache. I heard that it's easier with React-Query. Whereas I can do simple API calls: POST, GET, UPDATE, and DELETE.

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

    Great Content 👍🏻

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

    You deserve a subscribe and like.

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

    Nice explanation!

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

    GraphQL is way to go for me though 🔥🔥
    Videos are lit BtW

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

    Nice! thanks.

  • @yuvoria.official
    @yuvoria.official 2 ปีที่แล้ว

    I love REST more

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

    Thank you

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

    None!!

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

    Which outro music

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

    Love these random topics you keep making videos on. I keep learning different things. Thanks to youtube's algo too.

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

    This was a great video on each individual approach, but unfortunately did not live up to the title in actually comparing the two approaches in terms of use-case apart from detailing that a GraphQL req has the ability to control the fields returned. Still though, I really enjoy these videos! Keep it up!

  • @Sonu-tg6tg
    @Sonu-tg6tg 3 ปีที่แล้ว

    Thanks for such awesome videos, always waiting for your new videos, will be glad to get t-shirt giveaway

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

    quality content.

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

    It's always good staff here let's code the jounery

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

    6:51 The reason I love GraphQL. Thanks, Mehul bhaiya for the explanation.

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

    One of the best explanations on TH-cam!
    I still wonder one thing though... The GQL server returns a single response with exactly the data you need which makes it fast. However, wouldn't the GQL server still fetch the same amount of data from the DB? For example if you need a couple of fields from large userData collection that's tied to another large user collection, wouldn't GQL query the entirety of both of those collections from the DB? I get that not sending those over HTTP is a benefit but is it that much faster or am I missing something? On top of that, you have the data resolution that you have to do in the GQL server before sending it to the client which adds another layer of processing.

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

      > However, wouldn't the GQL server still fetch the same amount of data
      You got it right. When you have gql type, let's say User { id: ID, fistName: String, lastName: String, dep: Department }, you should fetch all of them from the DB.
      However some libraries have a workaround - complex type support. This means you can make an additional resolver for department field. So that you can get the department from db only when this field (dep) was queried on the client.

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

    White HALO in the center in every recent video..

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

    Pls sir adjust lighting it is so distracting 🥺🙏

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

    Great explain

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

    COMMENTED FOR T SHIRT GIVEAWAY!! :)

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

    ty

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

    Great content 🔥

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

    Great explanation :-)

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

    Great wideo

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

    🧐🧐🧐

  • @Dino-qz9bt
    @Dino-qz9bt 3 ปีที่แล้ว

    What about in terms of performance? Which one is better?

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

      REST would be faster because GraphQL sits behind a REST endpoint and has to perform all the validation and message parsing, whereas technically in REST you can even receive the request data as a stream

  • @t-rex4040
    @t-rex4040 3 ปีที่แล้ว

    amazing🔥💀

  • @GALAXY-yo9oe
    @GALAXY-yo9oe 3 ปีที่แล้ว

    If you can please record in hindi also.

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

    Keep these coming!

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

    Let me give you a honest advise, your content is good, topics are good and thumbnails are great, but the moment we see a whiteboard, the video becomes uninteresting. This is the reason why your views are low. I am sorry but it is true. ❤

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

    To be honest, I am here for the GIVEAWAY 🤦‍♂️

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

    May the like be on this comment.