sdy

update ChatQueries

...@@ -28,6 +28,25 @@ export const CREATE_MESSAGE = gql` ...@@ -28,6 +28,25 @@ export const CREATE_MESSAGE = gql`
28 } 28 }
29 `; 29 `;
30 30
31 +export const SEE_ALL_MESSAGE = gql`
32 + query seeAllMessage($roomId: Int!) {
33 + seeAllMessage(roomId: $roomId) {
34 + id
35 + text
36 + room {
37 + id
38 + name
39 + }
40 + sender {
41 + id
42 + username
43 + avatarUrl
44 + }
45 + createdAt
46 + }
47 + }
48 +`;
49 +
31 export const GET_ROOM_BY_NAME = gql` 50 export const GET_ROOM_BY_NAME = gql`
32 query getRoomByName($roomName: String!) { 51 query getRoomByName($roomName: String!) {
33 getRoomByName(roomName: $roomName) { 52 getRoomByName(roomName: $roomName) {
......