-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema
60 lines (60 loc) · 1.17 KB
/
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
<attachment>: uid .
<comment>: uid .
<comments>: [uid] @count .
<content>: string @index(fulltext) .
<content_type>: string .
<dgraph.cors>: [string] @index(exact) @upsert .
<dgraph.drop.op>: string .
<dgraph.graphql.p_query>: string .
<dgraph.graphql.p_sha256hash>: string @index(exact) .
<dgraph.graphql.schema>: string .
<dgraph.graphql.schema_created_at>: datetime .
<dgraph.graphql.schema_history>: string .
<dgraph.graphql.xid>: string @index(exact) @upsert .
<filename>: string .
<password>: password .
<post_time>: datetime @index(hour) .
<poster>: uid .
<thread>: uid .
<threads>: [uid] @count .
<title>: string @index(fulltext) .
<uid_val>: int .
<username>: string .
<val>: uid .
type <Attachment> {
content_type
filename
}
type <Comment> {
attachment
content
post_time
poster
thread
}
type <Thread> {
attachment
comments
poster
post_time
content
title
}
type <User> {
password
username
comments
threads
}
type <dgraph.graphql> {
dgraph.graphql.schema
dgraph.graphql.xid
}
type <dgraph.graphql.history> {
dgraph.graphql.schema_history
dgraph.graphql.schema_created_at
}
type <dgraph.graphql.persisted_query> {
dgraph.graphql.p_query
dgraph.graphql.p_sha256hash
}