sdy

init sendMessage

type Subscription {
sendMessage(message: String!): Message!
}
import { prisma } from "../../../middlewares";
export default {
Subscription: {
sendMessage: async (_, args) => {
const { message } = args;
},
},
};