Complete the code to define a subscription that listens for new messages.
subscription { [1] newMessage { id content } }The keyword on is used to specify the event to listen to in a subscription.
Complete the subscription to receive real-time updates for user status changes.
subscription { [1] userStatusChanged { userId status } }The on keyword is used to specify the event in a subscription.
Fix the error in the subscription to correctly listen for new comments.
subscription { [1] newComments { id text author } }The correct keyword to specify the event in a subscription is on.
Fill both blanks to complete the subscription that listens for order updates with id and status fields.
[1] { [2] orderUpdated { id status } }
The subscription operation starts with the keyword subscription, and inside it, the event is specified with on.
Fill both blanks to complete the subscription that listens for chat messages with id, text, and sender fields.
[1] { [2] chatMessageReceived { id text sender } }
The subscription operation starts with subscription, the event uses on.