Showing
2 changed files
with
0 additions
and
15 deletions
| 1 | -import { isAuthenticated, prisma } from "../../../utils"; | ||
| 2 | -import { NEW_MESSAGE_TOPIC } from "../../../topics"; | ||
| 3 | - | ||
| 4 | -export default { | ||
| 5 | - Subscription: { | ||
| 6 | - sendMessage: { | ||
| 7 | - subscribe: async (_, __, { request, pubsub }) => { | ||
| 8 | - pubsub.asyncIterator(NEW_MESSAGE_TOPIC); | ||
| 9 | - }, | ||
| 10 | - }, | ||
| 11 | - }, | ||
| 12 | -}; |
-
Please register or login to post a comment