sdy

create subMessage

type Subscription {
subMessage: Message
}
import { ONE_TO_ONE_MESSAGE } from "../../../topics";
export default {
Subscription: {
subMessage: {
subscribe: async (_, __, { pubsub }) => {
return pubsub.asyncIterator(ONE_TO_ONE_MESSAGE);
},
},
},
};