sdy

rename message topic

import { ONE_TO_ONE_MESSAGE } from "../../../topics";
import { NEW_MESSAGE } from "../../../topics";
export default {
Subscription: {
subMessage: {
subscribe: async (_, __, { pubsub }) => {
return pubsub.asyncIterator(ONE_TO_ONE_MESSAGE);
return pubsub.asyncIterator(NEW_MESSAGE);
},
},
},
......
export const ONE_TO_ONE_MESSAGE = "one-to-one message";
export const NEW_MESSAGE = "new message";
......