sdy

update ChatQueries

......@@ -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) {
......