sdy

change subMessage return value

1 import { gql } from "apollo-boost"; 1 import { gql } from "apollo-boost";
2 2
3 export const SUBSCRIPTION_MSG = gql` 3 export const SUBSCRIPTION_MSG = gql`
4 - subscription subMessage { 4 + subscription {
5 subMessage { 5 subMessage {
6 id 6 id
7 text 7 text
8 + room {
9 + id
10 + name
11 + }
8 sender { 12 sender {
9 id 13 id
10 username 14 username
15 + avatarUrl
11 } 16 }
12 createdAt 17 createdAt
13 } 18 }
......