GraphQL and FastAPI integration

Поділитися
Вставка
  • Опубліковано 31 лип 2021
  • This is a quick introduction to GraphQL.
    You will also learn how to run a basic query and fetch data using FastAPI framework through GraphiQL tool.
    ======================FastAPI crash course=====================
    • FastAPI [ Python Web F...
    ======================FARM stack course=====================
    • FARM Stack Course ( F...
    Github Code : github.com/BekBrace/GraphQL-F...
    You can reach me on : info@bekbrace.com
    You can read my blogs on : dev.to/bekbrace
  • Наука та технологія

КОМЕНТАРІ • 44

  • @pica_noris3461
    @pica_noris3461 3 роки тому +4

    amazing , thank you very much sir, and God bless you

  • @MounirSMalak
    @MounirSMalak 3 роки тому +2

    Keep them coming, brother, sweet short tutorial
    Ps : I know nothing about graphql

  • @Sindoku
    @Sindoku Рік тому +1

    Thanks for posting. I’m transitioning to a BE dev at my job and we use python on the BE. I’ve done this before with NodeJS, but Python’s code is even more simple than Node, and Node is pretty simple in the grand scheme of things.

  • @user-zi7ce3gm8v
    @user-zi7ce3gm8v 3 роки тому +3

    Thanks for kindness! I have one tiny question. Why fucntion named 'resolve_hello' is excuted? when class Query is requested. There is only def. not an excution code.

    • @BekBrace
      @BekBrace  3 роки тому +2

      A very good question 👏, and the answer is the last line of the program, where Query is being passed in Schema method which is inside GraphQLApp, and the later is being used executed when you enter / (your default route) and automatically the resolve_hello function is being called within the Query classas it is set in the Schema method below.
      Hope it’s clear and thank you, for your question, friend

  • @raymondmichael4987
    @raymondmichael4987 2 роки тому +2

    Hello again ;
    I must confess this, coming from MVC pattern with node js MERN stack, I find it hard to wrap my head around this fastapi beyond just single file todo-app.
    I would like your guide on this, to create a module application having routes, models, controllers,.env files to I can learn the big picture.
    If it's not too much of a request.
    Greetings from Tanzania 🇹🇿

    • @BekBrace
      @BekBrace  2 роки тому +1

      Noted , my friend

  • @EriksonEmil
    @EriksonEmil 2 роки тому +1

    starlette.graphql is deprecated in Starlette version >= 0.17.0. Any suggestion for replacement library to get along with this tutorial? Thanks.

    • @BekBrace
      @BekBrace  2 роки тому

      Not sure really, I'll look up for a solution and let you know

    • @ez9723
      @ez9723 7 місяців тому

      starlette-graphene3

  • @esportsnexus
    @esportsnexus 2 роки тому +1

    I've one question, is it mandatory that Graphql is implemented in Backend than only we can use it in Frontend ?

    • @BekBrace
      @BekBrace  2 роки тому

      it just fits there

  • @raymondmichael4987
    @raymondmichael4987 2 роки тому

    Dude, Ijust have to ask this; Is that project you promised to prepare is not done? I've been binge watching your videos lately and I'm so hyped for the project hopefully authentication won't be forgotten.
    Cheers fro Tanzania

    • @BekBrace
      @BekBrace  2 роки тому +1

      Hello Raymond and thank you for following up the latest content of the channel. Actually not yet, there are a few videos to be uploaded before - Cheers

    • @raymondmichael4987
      @raymondmichael4987 2 роки тому

      @@BekBrace, on behalf of others ; we'll be thankful to learn more from those videos.
      May Lord keep you safe and health

    • @BekBrace
      @BekBrace  2 роки тому +1

      @@raymondmichael4987 thanks a lot for your kindness, brother

  • @loicilov426
    @loicilov426 3 роки тому +4

    Great content dude. Can you make a tutorial including authentication and authorization withing FastAPI please ?

    • @BekBrace
      @BekBrace  3 роки тому +1

      Hey Mouki ! Thanks for your comment.
      Probably, I’m gonna do that in the FastAPI/Vue full-stack app I’m preparing currently

    • @raymondmichael4987
      @raymondmichael4987 3 роки тому

      @@BekBrace stay blessed and stay safe;
      Greetings from Tanzania 🇹🇿

    • @BekBrace
      @BekBrace  3 роки тому +2

      @@raymondmichael4987 Thank you Raymond for your kindness, bless you too my friend - best regards to you and all Tanzania 🇹🇿

    • @adri_fr8887
      @adri_fr8887 3 роки тому +1

      @@BekBrace waiting for it 🙌 I would even pay for it, ty man

    • @raymondmichael4987
      @raymondmichael4987 2 роки тому +1

      @@BekBrace I just revisited this video today, as this past days I've been addicted to your channel; I hope you're doing fine and the progress is good (never meant to put pressure on you brother, you give a lot to the community).
      Greetings from Tanzania 🇹🇿

  • @santoshmaharana4020
    @santoshmaharana4020 2 роки тому

    can we integrate Django and Fast API?

    • @santoshmaharana4020
      @santoshmaharana4020 2 роки тому

      Thanks for making such a content video

    • @BekBrace
      @BekBrace  2 роки тому

      No, I’m not sure that’s possible

    • @santoshmaharana4020
      @santoshmaharana4020 2 роки тому

      \can create a database with Django and the same database you can axis it with fast API

  • @juanmanero4631
    @juanmanero4631 3 роки тому +2

    can you make video for javascript with graphql in future ? or with angular framwork please ? good video

  • @Vijay-Yarramsetty
    @Vijay-Yarramsetty 10 місяців тому

    you haven't used ariadne library. but you said in the video.

    • @BekBrace
      @BekBrace  10 місяців тому

      I did actually

  • @luizferez89
    @luizferez89 3 роки тому +1

    It is an interesting video, however can you create a more in-depth tutorial with a front end and back end frameworks ? Thanks for your effort

    • @BekBrace
      @BekBrace  3 роки тому +3

      Hey Luiz. Thanks for your question. Yes, I’m currently preparing a full-stack tutorial for September so including Graphql/FastAPI/Vue

    • @tanjimulislam4762
      @tanjimulislam4762 3 роки тому +1

      ​@@BekBrace Which database are you going to use my friend ? If it is NoSQL then, please include theoretical explanation on how to store data under a specific user where in case if the user is deleted, the collections/documents will automatically going to be deleted.

    • @raymondmichael4987
      @raymondmichael4987 2 роки тому

      @@BekBrace count me in :)

    • @raymondmichael4987
      @raymondmichael4987 2 роки тому +1

      @@tanjimulislam4762 I prefer NoSql too

    • @BekBrace
      @BekBrace  2 роки тому +1

      @@tanjimulislam4762 hello Tanjimul. Which database am I going to use Where ?

  • @walterjalaf972
    @walterjalaf972 Рік тому +1

    Amazing Information ❤

  • @luiscevallos1
    @luiscevallos1 2 роки тому +2

    starlette.graphql give me error please your help

    • @BekBrace
      @BekBrace  2 роки тому +1

      Sure. Copy the error and paste it please, I want to take a look

    • @pedroluzio
      @pedroluzio 2 роки тому

      Please be aware: GraphQL support in Starlette was deprecated in version 0.15.0, and removed in version 0.17.0.