Build A Live News API with Apollo Server V4 Subscriptions and GraphQL (TypeScript Tutorial)

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

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

  • @marianodiez5274
    @marianodiez5274 8 месяцев назад +1

    Thx a lot for this amazing video, I am trying to do the same but I want to use Hapi instead express, do you have any other video or documentation that can I use?

  • @junjieyang7800
    @junjieyang7800 Год назад +1

    thank you so much, I have been looking for something amazing like this!

  • @armanulalam4560
    @armanulalam4560 Год назад +1

    I was struggling to understand the subscription part of apollo graphql documentation. This video helped me a lot. Thanks
    ]

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

    Great introduction to Subscriptions. Thanks. :)

  • @nwaformicah433
    @nwaformicah433 Год назад +4

    Thanks, great job and we appreciate. Can you do some tutorial on apollo express error handling

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

      Doing a video on Apollo Server GraphQL error handling today :) be on the lookout!

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

      @@CooperCodes thanks so much, you are the best

  • @neerajr7176
    @neerajr7176 11 месяцев назад

    Thanks alot

  • @DS-fr3kk
    @DS-fr3kk Год назад

    This helped a lot. Thanks 🙏

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

      You are very welcome. Thanks for watching!

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

    Hello, I am able to successfully make a mutation but when I do subscriptions I get a status error saying it's unable to connect to the ws://localhost:4000/graphql. Do you know what might be causing this issue? I even tried cloning you git code and running it on my local machine with no success

    • @yamikaperera9576
      @yamikaperera9576 Год назад +1

      having the same issue! Did you get any solutions?

    • @Tauseef_Hilal
      @Tauseef_Hilal 8 месяцев назад +1

      same for me. Got it working?

  • @logindharam
    @logindharam Год назад +1

    how can i create a seperate file for schema and resolver for the same

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

      I also had this issue, and I was struggling for a while as well but this is the solution.
      Lets say I have my typeDefs and resolvers in a schema.ts file in the same directory as the server.ts
      you import them like this assuming they aren't default exported.
      import { typeDefs, resolvers } from "./schema.js";
      you still do 'schema.js' even if its a .ts file.

    • @justiceellis6895
      @justiceellis6895 Год назад +1

      @@alexmcclay8152 I Implemented this and it worked perfectly, Thank you 😊

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

    do you have this in JavaScript?

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

      ruclips.net/video/rwVstu4tsgo/видео.html

  • @UzairZahoor-q7d
    @UzairZahoor-q7d Год назад

    source code please

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

      It is here: github.com/coopercodes/LiveNewsAPI

  • @Victor-wh9bs
    @Victor-wh9bs Год назад

    GraphQL

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

      Yep, back at it! More Apollo Server V4 content soon

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

    if I deploy this server on production I get this message:
    Send a POST request to query this endpoint:
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    curl --request POST \
    --header 'content-type: application/json' \
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    any help?