Filtering GraphQL Subscriptions with Arguments with AWS Amplify & AWS AppSync

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

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

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

    Wonderful tutorial and straight to the point. I was messing around with client-side filters and wasn't aware we can subscribe to specific events this way. Many thanks

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

    Awesome Nader, AWS really doing a lot with Amplify and I am really digging it!! Caught that Amplify Admin the other day, this is really picking up speed.

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

      Awesome to hear, thanks for sharing!!

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

    May God bless Nader for all your great content and concern for lowly developers like myself.
    Thank you so much for all your teachings. They are always timely and very worthwhile learning.

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

      That's great to hear, I appreciate you checking out my videos :)

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

    Great video man! I've been looking into this just today, and you've posted a video for it. Legend!

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

      Hell yeah, amazing to hear that the timing was good :)

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

    This was super helpful for my usecase! Thanks a ton for this most effective tutorial

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

    to the point, concise and clean tutorial as usual, Thank you!

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

    Great video! I’m praying for that day when you challenge yourself and post some videos using typescript.

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

    Always learn from you! Thanks

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

    Great video! Thanks! Would be great to watch more videos about cdk only or cdk + amplify cli :)

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

    Thanks for this video!

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

    Haha amazing video! you make it look easy :D

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

    God bless you.

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

    Awesome 👏. Thx. I have an additional question regarding subscription: If idefine a permission model to the message with the @auth rule. Let’s say only the member of group “author” is able to read messages. What would happens with the users who is not member of this group but use the subscription of normal “createMessage” subscription. Would they also be notified about the new messages. I hope no! 😀

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

      You can define authorization rules and this will either trigger a lambda function or you can handle it directly with a VTL resolver. I'll try to cover this soon

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

    Is the syntax the same for react native 2021 version of this? There seems to be a mismatch here from what you have: API.graphql(graphqlOperation(onCreateTransaction...

  • @jayraldempino1944
    @jayraldempino1944 10 месяцев назад

    Hi! Is the subscription arguments support nested object?

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

    How do you filter if a new post is added and should only be notified to users who follow that person ? Querying the db for the connection relationship for every single iteration is possible but will increase reads

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

    Super and thank you! btw I would like to do the same in Swift SDK but still struggling with subscribing given filter conditions. I think JS SDK is more supportive than Swift SDK.

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

    How would you return a status code in graphql subscriptions when working with webhooks?

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

    Thansk for this! I'm wondering how you would go about with filtering an update by an ID?

  • @Krishnakumar-wl7ih
    @Krishnakumar-wl7ih Год назад

    Is it possible to use app sync subscriptions without amplify API ?

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

    Hi Nader, thanks for the video. It’s very helpful. So, if I were to follow your video and create the subscription filtered by roomId and the end user ends up subscribing to 100 rooms. In this case, is it better to have 100 subscriptions of 1 roomId each or 1 subscription with filter of 100 roomId?

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

    Thank you for this great video ! I was wondering if it is possible to do a subscription with filtering depth > 1 ?
    For example onCreateByRoomId(room.roomId: String!), according that Message could have a @connection with a type Room sush as :
    type Room @model {
    Id: ID!
    name: String
    }
    Because if this is not possible it means that for each @connection we need to have a copy of the object ID with which we are connected and which we want to base the subscription on rigth?

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

    Hey Nader, I love this video. I've been searching for a while how to do this; but I am not using AWS/Sync or Amplify; just vanilla GraphQL and React. I looked in the description for the docs but couldn't find any. If you know where I can find the proper resources I would greatly appreciate it :)

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

    Seems to be this way of Subscription is no longer supported. Getting the error "MQTT over web sockets is not supported"

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

    Hi can you explain how can I unsubscribe to the subscriptions

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

    perfect