Showing
1 changed file
with
19 additions
and
5 deletions
1 | type User { | 1 | type User { |
2 | id: ID! | 2 | id: ID! |
3 | + avatarUrl: String | ||
3 | name: String | 4 | name: String |
4 | email: String | 5 | email: String |
5 | - profile: Profile | 6 | + loginSecret: String |
7 | + bio: String | ||
8 | + rooms: [Room] | ||
6 | createdAt: String | 9 | createdAt: String |
7 | } | 10 | } |
8 | 11 | ||
9 | -type Profile { | 12 | +type Room { |
10 | id: ID! | 13 | id: ID! |
11 | - bio: String | 14 | + participants: [User] |
12 | - user: User | 15 | + categories: [Category] |
13 | - createAt: String | 16 | +} |
17 | + | ||
18 | +type Category { | ||
19 | + id: ID! | ||
20 | + name: String | ||
21 | + rooms: [Room] | ||
22 | +} | ||
23 | + | ||
24 | +type Message { | ||
25 | + id: ID! | ||
26 | + text: String | ||
27 | + sender: User | ||
14 | } | 28 | } | ... | ... |
-
Please register or login to post a comment