subMessage.js 223 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import { NEW_MESSAGE } from "../../../topics"; export default { Subscription: { subMessage: { subscribe: async (_, __, { pubsub }) => { return pubsub.asyncIterator(NEW_MESSAGE); }, }, }, };