forked from anudit/lenssubgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
85 lines (76 loc) · 1.86 KB
/
schema.graphql
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
type Profile @entity {
id: ID! # profileId uint256
creator: Bytes! # address
owner: Bytes! # address
profileId: BigInt! # uint256
pubCount: BigInt! # uint256
followNFT: Bytes! # address
handle: String! # string
imageURI: String! # string
followNFTURI: String! # string
createdOn: BigInt! # uint256
followModule: Bytes! # address
followModuleReturnData: Bytes!
dispatcher: Bytes!
posts: [Post!]! @derivedFrom(field: "profileId")
}
type Comment @entity {
id: ID! # txn
profileId: BigInt! # uint256
pubId: BigInt! # uint256
contentURI: String! # string
profileIdPointed: BigInt!
pubIdPointed: BigInt!
collectModule: Bytes!
collectModuleReturnData: Bytes!
referenceModule: Bytes!
referenceModuleReturnData: Bytes!
timestamp: BigInt!
postPointed: Post!
}
type Mirror @entity {
id: ID! # txn
profileId: BigInt!
pubId: BigInt!
profileIdPointed: BigInt!
pubIdPointed: BigInt!
referenceModule: Bytes!
referenceModuleReturnData: Bytes!
timestamp: BigInt!
}
type SocialGraph @entity {
id: ID! # address
following: [Profile!]!
}
type ProfileCreatorWhitelist @entity {
id: ID! # address
isWhitelisted: Boolean!
lastUpdated: BigInt!
}
type FollowModuleWhitelist @entity {
id: ID! # address
isWhitelisted: Boolean!
lastUpdated: BigInt!
}
type ReferenceModuleWhitelist @entity {
id: ID! # address
isWhitelisted: Boolean!
lastUpdated: BigInt!
}
type CollectModuleWhitelist @entity {
id: ID! # address
isWhitelisted: Boolean!
lastUpdated: BigInt!
}
type Post @entity {
id: ID! # string
profileId: Profile!
pubId: BigInt! # uint256
contentURI: String! # string
collectModule: Bytes! # address
collectModuleReturnData: Bytes! # bytes
referenceModule: Bytes! # address
referenceModuleReturnData: Bytes! # bytes
timestamp: BigInt! # uint256
comments: [Comment!] @derivedFrom(field: "postPointed")
}