GraphQL with Django - Intro, Install and first query

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

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

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

    I cannot emphasize enough just how valuable an explanation like yours is to truly grasp the basics of something, as a foundation for further learning and even to jump in right away and be able to understand how to do something with it. You're a talented teacher. Thank you for bringing such quality material to us!

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

    most underrated and most informative channel I've come across so far.

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

      Thanks Wolf - it is what it is - as long as it helps someone I will keep doing it. As I keep saying, as or if we get bigger I will spend more time and produce much more advanced and in depth tutorials.

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

      @@veryacademy Really appreciate your efforts, have already recommended your channel to all of my friends... just a tiny help from my side :)

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

    please dont die too soon, my friend.. ur videos and playlists are really helpful and clear

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

    it's awsome and it's very easy to understand begginers must watch this video series

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

    best intro video for graphql/django, great work explaining everything in detail

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

    these 30 minutes boosted me from absolutely novice to "yeah, I think I can do graphQL now".

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

    Terrific explanation and configuration, thank you. For anyone wondering yes, this is still valid. There's a problem with Django 4 and Graphene though, so I recommend you installing a 3.x.x version or do like me and downgrade to 3.2.9. Thank you so much!

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

    This channel is soooo underrated

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

      Thanks ndzy - its a new channel so, maybe over time it will become more popular. Happy at the moment the way it is. Am working on bigger and better things for this channel and other resources you and everyone else will be able to easily learn many languages and frameworks. It all takes time of course.

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

      @@veryacademy I'm sure it will grow. A lot of great programmers on youtube but it takes skill to teach programming. I think you're doing an amazing job in teaching, really happy you're creating these video's, looking forward to future content. All the best

  • @behdad2760
    @behdad2760 6 หลายเดือนก่อน

    You're a great human being, sir.

  • @Acel-01
    @Acel-01 2 ปีที่แล้ว +2

    Very good tutorial. Explained everything well. Best graphql tutorial I''ve watched

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

      Glad it was helpful!

  • @asongnafrank3937
    @asongnafrank3937 หลายเดือนก่อน

    this has been very informative and helpful to me

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

    Wow, you are a great teacher, I feel I'm going to watch a lot of your videos. Thanks a lot!

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

    Good content. We can easily see the flexibility GraphQL provides for APIs

  • @НиколайЗаднепровский
    @НиколайЗаднепровский 3 ปีที่แล้ว +2

    Thank you for this series, good introduction for those familiar with django.

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

    Your tutorials are detail....I love this

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

      Glad you like them! Thank you 👍

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

    This guy is literally killing Udemy

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

      Yeah, hopefully next year I will sort things out further so we can avoid Udemy - most courses are just copy paste

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

    truly Amazing! this was greatly explained!

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

    Thank you for this series.. Its JUST a AWESOME ,,,,,.....

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

    Best tutorial for graphql on django

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

    Really great content! Very easy to understand! You have a knack for explaining complex topics :)

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

    you are an angel from heaven .Thank you alot

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

    Using GraphQl is like querying like a god☺️☺️

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

      It can feel really good coming from DRF. It is still maturating a technology using it with Django for example.

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

      @@veryacademy Yeah actually, I'm working on a project now.. so decided to dive back into these videos. They are really helpful.. Thanks again 🙂

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

    Very, very good tutorial man. Thank you.

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

    Thanks 👍 for Great tutorial... Please make some videos About XML Response Rest API how to use in Django or How converte XML to JSON Or python dictionary or how to filters XML Response in python or use in Django template front-end or How to save or update or delete Data in Django database models with external API ... I also like your Django Admin customized series.... Great 👌 Work... @Very Academy

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

      Well, I wasn't expecting that, XML you say 😁 I will put it down on my list. I would very much doubt it would be anytime soon sorry to say - will just be up front with you. Will see.

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

    I really appreciated this tutorial. There is a tremendous lack of python+graphql resources and this was just a treat. One question did pop up: graphene-django seems to be a really nice solution if all your data is stored inside django models, but if you had several databases in your app, not all of them using django models, could you just write up resolvers that fetch the data without using Django? This is where I see graphQL being a very powerful tool, just allowing the frontend to ignore where it's getting the data from and letting the resolvers be the ones in charge of setting up what the frontend can get

  • @TK-zn5fb
    @TK-zn5fb 3 ปีที่แล้ว +1

    Super intuitive and easy to understand. Thank you

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

      Glad it was helpful!

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

    am sleepy but i still understand ...very precise

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

    Your knowledge on django is quite exceptional, your tutorials too. Where are you learning this stuff (it look like you are practicing django for 10+ years 😅)Nice stuff BTW✌

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

      I am just really good at making it up 😁

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

    Great video!

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

    See papa!!! Buen video. Yes!! Great video. hope to se more of graphql

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

      You got it! Coming up soon 👍

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

    You deserve millions subscriber

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

      Thank you - I know right 😁 if you can persuade them please do 😉

  • @store_paclos
    @store_paclos 6 หลายเดือนก่อน

    thank you sir for this wenderful tutorials ,
    i have question please: i can't configure Graphql-auth with django v5.0.3 version, is just configure with django v3.7.9

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

    Very much informative. Thank you

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

      Glad it was helpful!

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

    I am loving your tutorials!!! another great series! would you please also do some tutorial on django channels

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

      I did start to, its just another thing to pick up later.

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

    Fantastic! Thank you. 😊

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

    Thanks, Really liked the way of explanation

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

      Glad it was helpful!

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

    In 2023 after recoding this tutorial,
    1) GraphiQL is not showing me the schema, only "# Welcome to GraphiQL" comments.
    2)And I needed
    path("graphql/", GraphQLView.as_view...
    instead of
    path("graphql", GraphQLView.as_view...
    to make the GraphiQL UI show up.
    update: for 1) I deleted the #... comments and inserted
    {
    allBooks {
    id
    title
    }
    }
    as shown in the video tutorial. I don't know if this was just a step skipped in the video?
    Then I pressed the play button and got what is shown in the video.

    • @s1mple..
      @s1mple.. 2 หลายเดือนก่อน

      same problem i am facing

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

    I was here first. Thank you for this

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

      Thanks David for your rapid response! 👍 Sorry to say - I am always the first person to it 😁

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

    Best tutorial ever!!!!

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

    But where is "excerpt" field in GraphQL query??

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

    very great video.

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

    Thanks,very helpful !

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

      Glad it was helpful!

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

    can u make more videos graphene .Advanced concepts and uses.

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

    Awesome video! 😊

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

      Great - I will try and get the next one out tonight 👍

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

    amazing videos ...........

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

      Glad you like them! Thank you! 👍

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

      @@veryacademy thank you for the effort u put in these tutorials .
      Thank u again 💙

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

      Thank you seriously, this is massively time consuming but very rewarding knowing it might help someone 👍

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

    Is it possible to filter the books from GraphQL and not from the backend?

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

      Up next is more query techniques, yes indeed it is 👍

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

      @@veryacademy Hello, thanks for your response. Great tutorial, by the way. Much appreciated!

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

    I still think DRF is much better...but yeah, very good intro to GraphQL :)

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

      Its all fun - thank you, appreciate that comment 👍
      Anyone reading - Its all about focusing on solving the context, knowing when to use Microservice or Monolithic, using the right approaches. You are right, DRF is better than GraphQL but GraphQL is better than DRF at the same time - in the right development context.
      The thing is for anyone reading this - no technology has ever not worked (generally they might just cost more) - if you told every business that they had to use DRF - well they could make it work. Similar to if we told every to switch to GraphQL - it would work, or you would make it work. Graph might have better performance in some cases - but you could argue that is because no-one is running a competition to try and then make DRF more effective. Also - if everyone started learning JS instead of Python you would over time just have more skill in JS so tend to focus on JS solutions (and have better solutions because people (I say people I mean the likes of Facebook and Amazon etc) have developed / researched them further)

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

      @@veryacademy Surely well said...I am glued to your channel to understand concepts like these....It would be interesting to understand GraphQL first and then decide which one to use....Thank you :)

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

    Oh come on! This is too good

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

      Its ok 👍

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

      @@veryacademy it's quite good... And been waiting for this topic

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

    Actually I want to send post request to django rest framework through graphql mutation .. please help me to achieve this.

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

    very good

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

      Thank you! Cheers! 👍

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

    Thanks

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

    can you please tell me how to convert graphql mutation to json , so that I send post request to django rest framework

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

    Thank you very much for the tutorial, but how do I get the data from a JavaScript call?

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

      If you are mentioning js front end use axios

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

      @@anandapadmanabhanvt thanks!

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

    What is the difference between graphql and drf?

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

      Great question! In short they allow you to do the same things in your project. Without making it into a lecture reply. Graph provides can offer more controlled precise way of getting data from the database. DRF is older but possibly provide easier implementation because it has been around for longer. Graph is harder to secure than DRF. This answer is a flavour (some might not agree) of the differences in different perspectives software implementation.

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

    Oh there is no love button!

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

      Its ok, its the thought that counts 😂

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

    Hi. Sorry for the long comment but when I did all the steps in exactly same way (even directly cloned from repo thereafter) it gives keeping error on graphql page. Can you comment on that please? Thanks in adv. {
    "errors": [
    {
    "message": "Syntax Error GraphQL (31:1) Unexpected EOF

    30: #
    31:
    ^
    ",
    "locations": [
    {
    "line": 31,
    "column": 1
    }
    ]
    }
    ]
    }

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

    Just perfect!

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

      Thank you - we will continue here for sure soon with an example with a front end

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

      @@veryacademy I'm hoping that its react.js

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

    Awesome

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

    Yes 🔥

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

    I got an error. Forbidden card token missing or incorrect

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

      CSRF verification failed?

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

      @@veryacademy yes sir.. CSRF verification failed

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

    Can you do something on hasura with Django? Is there anything special about hasura?

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

      That is the beauty of starting a project in Graph - if you outgrow or decided to move on from Django - you can easily migrate to Hasura 👍
      You wouldnt typically use Django with Hasura - Hasura would take over from Django. So you would start pointing your front end to Hasura and then Hasura to your original database you were using with Django. So, you might still use Django connected to the database for the admin aspects - but Hasura and Django wouldnt know about each other 👍

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

      @@veryacademy thanks

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

    How to limit number of records?

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

    not getting correct result
    {
    "data": {
    "allBooks": []
    }
    }

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

      Do you have any data to show?

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

      @@veryacademy yes.. I have added data to books...I am trying to solve this error from last two days. Please try to solve my error.

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

    is there a quickstart?

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

      How quick is a quickstart?

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

      something i can fork prolly in github without the manual setup?

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

      Have a look in the video descriptions you will find the code for just about any video you go on. Anything else let me know 👍
      github.com/veryacademy/YT-GraphQL-Django-Get-Started

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

      @@veryacademy super thanks!

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

      @@ninjedi6710 👍

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

    Great Video !!