Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-31 23:42:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30c548661c0ac218c75a759ed9a63dc078489ea6
30c54866
1 parent
94d3d126
rename resolver, graphql
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
back/src/api/Message/wholeMessage/wholeMessage.graphql → back/src/api/Message/createMessage/createMessage.graphql
back/src/api/Message/wholeMessage/wholeMessage.js → back/src/api/Message/createMessage/createMessage.js
back/src/api/Message/
wholeMessage/whol
eMessage.graphql
→
back/src/api/Message/
createMessage/creat
eMessage.graphql
View file @
30c5486
type Mutation {
whol
eMessage(message: String!, roomId: Int!): Message!
creat
eMessage(message: String!, roomId: Int!): Message!
}
...
...
back/src/api/Message/
wholeMessage/whol
eMessage.js
→
back/src/api/Message/
createMessage/creat
eMessage.js
View file @
30c5486
...
...
@@ -2,7 +2,7 @@ import { prisma, isAuthenticated } from "../../../utils";
export
default
{
Mutation
:
{
whol
eMessage
:
async
(
_
,
args
,
{
request
})
=>
{
creat
eMessage
:
async
(
_
,
args
,
{
request
})
=>
{
isAuthenticated
(
request
);
const
{
user
}
=
request
;
const
{
message
,
roomId
}
=
args
;
...
...
Please
register
or
login
to post a comment