sdy

rename resolver, graphql

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