-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcommunity-graph.schema
92 lines (82 loc) · 1.89 KB
/
community-graph.schema
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
type Link {
url: ID!
}
type User {
id: ID!
type: String
repositories: [Repository] @relation(name:"CREATED")
questions: [Question] @relation(name:"POSTED")
answers: [Answer] @relation(name:"POSTED")
reputation: Int
screen_name: String!
name: String
location: String
followers: Int
following: Int
statuses: Int
profile_image_url: String
posted: [Tweet] @relation(name:"POSTED")
tagged: [Tag] @relation(name:"TAGGED")
}
type Tweet {
id: ID!
text: String
created: Int
favorites: Int
postedBy: User @relation(name:"POSTED", direction:"IN")
mentioned: [User] @relation(name:"MENTIONED")
reply: Tweet @relation(name:"REPLIED_TO")
retweeted: Tweet @relation(name:"RETWEETED")
}
type Tag {
name: ID!
tagged: [Tweet] @relation(name:"TAGGED", direction:"IN")
}
type Repository {
title: String!
full_name: String
url: String
created: Int
homepage: String
favorites: Int
updated: Int
pushed: Int
size: Int
score: Float
watchers: Int
language: String
forks: Int
open_issues: Int
branch: String
description: String
owner: User @relation(name:"CREATED", direction: "IN")
}
type Question {
id: ID!
title: String
link: String
score: Int
text: String
closed_date: Int
closed_reason: String
comment_count: Int
favorites: Int
view_count: Int
comment_count: Int
is_answered: Boolean
created: Int
updated: Int
answers: [Answer] @relation(name:"ANSWERED", direction:"IN")
author: User @relation(name:"POSTED", direction:"IN")
tags: [Tag] @relation(name:"TAGGED")
}
type Answer {
id: ID!
text: String
comment_count: Int
is_accepted: Boolean
created: Int
score: Int
question: Question @relation(name:"ANSWERED")
author: User @relation(name:"POSTED", direction:"IN")
}