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-23 05:43:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04620c241937174a63359de83eec89a9a1b50ce4
04620c24
1 parent
da45ba06
create ChatQueries.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
front/src/Routes/Chat/ChatQueries.js
front/src/Routes/Chat/ChatQueries.js
0 → 100644
View file @
04620c2
import
{
gql
}
from
"apollo-boost"
;
export
const
SUBSCRIPTION_MSG
=
gql
`
subscription subMessage {
subMessage {
id
text
sender {
id
username
}
createdAt
}
}
`
;
export
const
NEW_MESSAGE
=
gql
`
mutation newMessage($message: String) {
newMessage(message: $message) {
id
text
sender {
id
username
}
createdAt
}
}
`
;
Please
register
or
login
to post a comment