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).
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).