sdy

init sendMessage

1 +type Subscription {
2 + sendMessage(message: String!): Message!
3 +}
1 +import { prisma } from "../../../middlewares";
2 +
3 +export default {
4 + Subscription: {
5 + sendMessage: async (_, args) => {
6 + const { message } = args;
7 + },
8 + },
9 +};