Showing
1 changed file
with
8 additions
and
2 deletions
... | @@ -11,6 +11,8 @@ type User { | ... | @@ -11,6 +11,8 @@ type User { |
11 | rooms: [Room] | 11 | rooms: [Room] |
12 | createdAt: String | 12 | createdAt: String |
13 | messages: [Message] | 13 | messages: [Message] |
14 | + sender: Message | ||
15 | + receiver: [Message] | ||
14 | } | 16 | } |
15 | 17 | ||
16 | type Room { | 18 | type Room { |
... | @@ -27,8 +29,12 @@ type Category { | ... | @@ -27,8 +29,12 @@ type Category { |
27 | 29 | ||
28 | type Message { | 30 | type Message { |
29 | id: ID! | 31 | id: ID! |
30 | - text: String | 32 | + text: String! |
31 | - sender: User | 33 | + from: User! |
34 | + to: User! | ||
35 | + room: Room! | ||
36 | + createdAt: String | ||
37 | + updatedAt: String | ||
32 | } | 38 | } |
33 | 39 | ||
34 | type AuthPayload { | 40 | type AuthPayload { | ... | ... |
-
Please register or login to post a comment