sdy

rename resolver, graphql

type Mutation {
wholeMessage(message: String!, roomId: Int!): Message!
createMessage(message: String!, roomId: Int!): Message!
}
......
......@@ -2,7 +2,7 @@ import { prisma, isAuthenticated } from "../../../utils";
export default {
Mutation: {
wholeMessage: async (_, args, { request }) => {
createMessage: async (_, args, { request }) => {
isAuthenticated(request);
const { user } = request;
const { message, roomId } = args;
......