sdy

update graphql schema

1 type User { 1 type User {
2 id: ID! 2 id: ID!
3 avatarUrl: String 3 avatarUrl: String
4 - name: String 4 + name: String!
5 email: String! 5 email: String!
6 - password: String 6 + password: String!
7 emailSecret: String 7 emailSecret: String
8 - phoneNum: String 8 + phoneNum: String!
9 phoneSecret: String 9 phoneSecret: String
10 bio: String 10 bio: String
11 rooms: [Room] 11 rooms: [Room]
12 createdAt: String 12 createdAt: String
13 messages: [Message] 13 messages: [Message]
14 - sender: Message 14 + from: Message
15 - receiver: [Message] 15 + to: [Message]
16 } 16 }
17 17
18 type Room { 18 type Room {
...@@ -30,8 +30,8 @@ type Category { ...@@ -30,8 +30,8 @@ type Category {
30 type Message { 30 type Message {
31 id: ID! 31 id: ID!
32 text: String! 32 text: String!
33 - from: User! 33 + from: User
34 - to: User! 34 + to: [User]
35 room: Room! 35 room: Room!
36 createdAt: String 36 createdAt: String
37 updatedAt: String 37 updatedAt: String
......