You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Mutation {
createMessage(input: MessageInput): [Message]
}
type Subscription {
messageCreated(room: String): [Message]
@aws_subscribe(mutations: ["createMessage"])
}
I tested subscription and mutation by firing mutation in one tab and in other tab I have fired subscription, got data in mutation as array of objects but not getting any response from subscription (I want response as array of object same as mutation).
The text was updated successfully, but these errors were encountered:
I have mutation as
type Mutation {
createMessage(input: MessageInput): [Message]
}
type Subscription {
messageCreated(room: String): [Message]
@aws_subscribe(mutations: ["createMessage"])
}
I tested subscription and mutation by firing mutation in one tab and in other tab I have fired subscription, got data in mutation as array of objects but not getting any response from subscription (I want response as array of object same as mutation).
The text was updated successfully, but these errors were encountered: