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-06-01 02:14:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e5782bf77b45bbcda40f827f6ed3617968546b8a
e5782bf7
1 parent
08289cd8
update ChatQueries
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
front/src/Routes/Chat/ChatQueries.js
front/src/Routes/Chat/ChatQueries.js
View file @
e5782bf
...
...
@@ -28,6 +28,25 @@ export const CREATE_MESSAGE = gql`
}
`
;
export
const
SEE_ALL_MESSAGE
=
gql
`
query seeAllMessage($roomId: Int!) {
seeAllMessage(roomId: $roomId) {
id
text
room {
id
name
}
sender {
id
username
avatarUrl
}
createdAt
}
}
`
;
export
const
GET_ROOM_BY_NAME
=
gql
`
query getRoomByName($roomName: String!) {
getRoomByName(roomName: $roomName) {
...
...
Please
register
or
login
to post a comment