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
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.
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.
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! 😀
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
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...
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
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.
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?
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?
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 :)
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
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.
Awesome to hear, thanks for sharing!!
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.
That's great to hear, I appreciate you checking out my videos :)
Great video man! I've been looking into this just today, and you've posted a video for it. Legend!
Hell yeah, amazing to hear that the timing was good :)
This was super helpful for my usecase! Thanks a ton for this most effective tutorial
to the point, concise and clean tutorial as usual, Thank you!
Great video! I’m praying for that day when you challenge yourself and post some videos using typescript.
Always learn from you! Thanks
Great video! Thanks! Would be great to watch more videos about cdk only or cdk + amplify cli :)
Thanks for this video!
Haha amazing video! you make it look easy :D
God bless you.
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! 😀
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
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...
Hi! Is the subscription arguments support nested object?
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
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.
How would you return a status code in graphql subscriptions when working with webhooks?
Thansk for this! I'm wondering how you would go about with filtering an update by an ID?
Is it possible to use app sync subscriptions without amplify API ?
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?
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?
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 :)
Seems to be this way of Subscription is no longer supported. Getting the error "MQTT over web sockets is not supported"
Hi can you explain how can I unsubscribe to the subscriptions
perfect