-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema_query.wsd
44 lines (39 loc) · 1.04 KB
/
schema_query.wsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@startuml SchemaQuery
@startmindmap
* Query
**[#orange] users: [User!]! ⇢
**[#lightgreen] user(id: ID, email: String): User! ⇢
***[#lightblue] id: ID!
***[#lightblue] email: String!
***[#lightblue] name: String!
***[#orange] posts: [Post]! ⇢
***[#orange] reactions: [Reaction!]! ⇢
**[#lightgreen] me: User ⇢
**[#orange] posts: [Post!]! ⇢
**[#lightgreen] post(id: ID!): Post!
***[#lightblue] id: ID!
***[#lightgreen] author: User! ⇢
***[#lightgreen] parent: Post ⇢
***[#lightblue] text: String!
***[#lightblue] createdAt: ISO8601DateTime!
***[#orange] comments: [Message!]! ⇢
***[#orange] reactions: [Reaction!]! ⇢
****[#lightblue] id: ID!
****[#lightblue] emotion: Emotion!
*****_ LIKE
*****_ DISLIKE
*****_ LOVE
*****_ LAUGH
*****_ CRY
*****_ WOW
****[#lightblue] createdAt: ISO8601DateTime!
****[#lightgreen] post: Post! ⇢
****[#lightgreen] user: User! ⇢
legend top left
Green: Object
Orange: Arrays of objects
Blue Scalar or Arrays of scalars
⇢: Repeats an already defined element in the graph
endlegend
@endmindmap
@enduml