sdy

rename message topic

1 -import { ONE_TO_ONE_MESSAGE } from "../../../topics"; 1 +import { NEW_MESSAGE } from "../../../topics";
2 2
3 export default { 3 export default {
4 Subscription: { 4 Subscription: {
5 subMessage: { 5 subMessage: {
6 subscribe: async (_, __, { pubsub }) => { 6 subscribe: async (_, __, { pubsub }) => {
7 - return pubsub.asyncIterator(ONE_TO_ONE_MESSAGE); 7 + return pubsub.asyncIterator(NEW_MESSAGE);
8 }, 8 },
9 }, 9 },
10 }, 10 },
......
1 -export const ONE_TO_ONE_MESSAGE = "one-to-one message"; 1 +export const NEW_MESSAGE = "new message";
......