-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
1114 lines (970 loc) · 26.3 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
# enum EventName
The squid tracks these on-chain events:
* Posts.PostCreated
* Posts.PostUpdated
* Posts.PostMoved
* Reactions.PostReactionCreated
* Reactions.PostReactionUpdated
* Reactions.PostReactionDeleted
* Spaces.SpaceCreated
* Spaces.SpaceUpdated
* Profiles.ProfileUpdated
* SpaceFollows.SpaceFollowed
* SpaceFollows.SpaceUnfollowed
* SpaceOwnership.SpaceOwnershipTransferAccepted
* AccountFollows.AccountFollowed
* AccountFollows.AccountUnfollowed
* Domains.DomainRegistered
* Domains.DomainMetaUpdated
* EvmAddressUnlinkedFromAccount
* EvmAddressLinkedToAccount
***
However, some of the on-chain events have multiple logical meanings.
As a result, the squid uses synthetic events in addition to native on-chain events.
> **"Synthetic event"** - a logical event which does not exist on the blockchain and can
> generated by a blockchain event with specific data conditions.
### The events available on the squid are:
* PostCreated
* PostDeleted - *synthetic*
* PostUpdated
* PostShared - *synthetic*
* PostMoved
* PostFollowed - *synthetic*
* PostUnfollowed - *synthetic*
* PostReactionCreated
* PostReactionUpdated
* PostReactionDeleted
* SpaceCreated
* SpaceUpdated
* SpaceFollowed
* SpaceUnfollowed
* SpaceOwnershipTransferAccepted
* SpaceOwnershipTransferCreated
* AccountFollowed
* AccountUnfollowed
* ProfileUpdated
* CommentCreated - *synthetic*
* CommentDeleted - *synthetic*
* CommentUpdated - *synthetic*
* CommentShared - *synthetic*
* CommentReactionCreated - *synthetic*
* CommentReactionUpdated - *synthetic*
* CommentReactionDeleted - *synthetic*
* CommentReplyCreated - *synthetic*
* CommentReplyDeleted - *synthetic*
* CommentReplyUpdated - *synthetic*
* CommentReplyShared - *synthetic*
* CommentReplyReactionCreated - *synthetic*
* CommentReplyReactionUpdated - *synthetic*
* CommentReplyReactionDeleted - *synthetic*
* UserNameRegistered - *synthetic*
* UserNameUpdated - *synthetic*
* ExtensionDonationCreated - *synthetic*
* ExtensionEvmNftShared - *synthetic*
* ExtensionImageCreated - *synthetic*
* ExtensionSecretBoxCreated - *synthetic*
* ExtensionPinnedPostsCreated - *synthetic*
* EvmAddressLinkedToAccount
* EvmAddressUnlinkedFromAccount
"""
enum EventName {
PostCreated
PostDeleted # synthetic
PostUpdated
PostShared # synthetic
PostMoved
PostFollowed
PostUnfollowed
CommentFollowed # synthetic
CommentUnfollowed # synthetic
PostReactionCreated
PostReactionUpdated
PostReactionDeleted
SpaceCreated
SpaceUpdated
SpaceFollowed
SpaceUnfollowed
SpaceOwnershipTransferAccepted
SpaceOwnershipTransferCreated
OwnershipTransferCreated
OwnershipTransferAccepted
OwnershipTransferRejected
AccountFollowed
AccountUnfollowed
ProfileUpdated
ExtensionDonationCreated # synthetic
ExtensionEvmNftShared # synthetic
ExtensionImageCreated # synthetic
ExtensionSecretBoxCreated # synthetic
ExtensionPinnedPostsCreated # synthetic
CommentCreated # synthetic
CommentDeleted # synthetic
CommentUpdated # synthetic
CommentShared # synthetic
CommentReactionCreated # synthetic
CommentReactionUpdated # synthetic
CommentReactionDeleted # synthetic
CommentReplyCreated # synthetic
CommentReplyDeleted # synthetic
CommentReplyUpdated # synthetic
CommentReplyShared # synthetic
CommentReplyReactionCreated # synthetic
CommentReplyReactionUpdated # synthetic
CommentReplyReactionDeleted # synthetic
UserNameRegistered # synthetic
UserNameUpdated # synthetic
EvmAddressUnlinkedFromAccount
EvmAddressLinkedToAccount
}
"""
Post types.
- Comment - This post is a Comment or Comment Reply
- SharedPost - This post has been created as a result of another post being shared
- RegularPost - Regular top level post
"""
enum PostKind {
Comment
SharedPost
RegularPost
}
enum ReactionKind {
Upvote
Downvote
}
enum InReplyToKind {
Post
}
enum Status {
Active
Deleted
}
enum PinnedResourceType {
Post
Space
}
"""
The schema ID of the content extensions.
"""
enum ContentExtensionSchemaId {
subsocial_donations
subsocial_evm_nft
subsocial_image
subsocial_secret_box
subsocial_decoded_promo
subsocial_pinned_posts
}
"""
The Account entity
"""
type Account @entity {
"""
The account's public key converted to ss58 format for the Subsocial chain (prefix "28")
"""
id: ID!
"""
A One-To-One relationship with the particular Space entity which is defined as the Account Profile
"""
profileSpace: Space
"""
A One-To-Many relationship between the current Account and a follower Account through AccountFollowers (foreign key - "followingAccount")
"""
followers: [AccountFollowers]! @derivedFrom(field: "followingAccount")
"""
The total number of followers that an Account has (followers.length)
"""
followersCount: Int!
"""
A One-To-Many relationship between the current Account and an Account being followed through AccountFollowers (foreign key - "followerAccount")
"""
followingAccounts: [AccountFollowers]! @derivedFrom(field: "followerAccount")
"""
The total number of all accounts being followed by the current Account (followingAccounts.length)
"""
followingAccountsCount: Int!
"""
A One-To-Many relationship with the Posts which are created by an Account (foreign key - "createdByAccount")
"""
posts: [Post] @derivedFrom(field: "createdByAccount")
"""
A One-To-Many relationship with the Posts which are owned by an Account (foreign key - "ownedByAccount")
"""
ownedPosts: [Post] @derivedFrom(field: "ownedByAccount")
"""
The total number of Posts owned by an Account (ownedPosts.length)
"""
ownedPostsCount: Int!
"""
The total number of Posts that an Account is following (currently, a post is only followed by its creator)
"""
followingPostsCount: Int!
"""
A One-To-Many relationship with the Spaces that have been created by an Account (foreign key - "createdByAccount")
"""
spacesCreated: [Space!] @derivedFrom(field: "createdByAccount")
"""
A One-To-Many relationship with the Spaces that are currently owned by an Account (foreign key - "ownedByAccount")
"""
spacesOwned: [Space!] @derivedFrom(field: "ownedByAccount")
"""
A One-To-Many relationship between an Account and the Spaces that it follows through SpaceFollowers (foreign key - "followerAccount")
"""
spacesFollowed: [SpaceFollowers!] @derivedFrom(field: "followerAccount")
"""
The total number of Spaces that an Account is following
"""
followingSpacesCount: Int!
"""
A One-To-Many relationship between an Account and the Activities it has performed in the network through NewsFeed (foreign key - "account").
Each Activity has the "event<EventName>" and "post" fields, which can be used for adding created Posts to a user's Feed.
"""
feeds: [NewsFeed]! @derivedFrom(field: "account")
"""
A Many-To-Many relationship between an Account and Activities done in the network through Notification (foreign key - "account").
"""
notifications: [Notification]! @derivedFrom(field: "account")
"""
A One-To-Many relationship with the Activities which have been performed by an Account (foreign key - "account")
"""
activities: [Activity]! @derivedFrom(field: "account")
"""
A One-To-Many relationship with the Reactions that are made by an Account (foreign key - "account")
"""
reactions: [Reaction]! @derivedFrom(field: "account")
"""
The DateTime when an Account was updated by the Profiles.ProfileUpdated event
"""
updatedAtTime: DateTime
"""
The block height when an Account was updated by the Profiles.ProfileUpdated event
"""
updatedAtBlock: BigInt
"""
A list of the usernames that an Account owns.
"""
usernames: [String]
"""
A list of linked Evm Accounts
"""
linkedEvmAccounts: [EvmSubstrateAccountLink]!
@derivedFrom(field: "substrateAccount")
"""
A list of extensions created by the account.
"""
extensions: [ContentExtension]! @derivedFrom(field: "createdBy")
}
"""
The Evm Account entity
"""
type EvmAccount @entity {
"""
The account's Evm address
"""
id: ID!
"""
A list of linked Substrate Accounts
"""
linkedSubstrateAccounts: [EvmSubstrateAccountLink]!
@derivedFrom(field: "evmAccount")
}
"""
The Post entity
"""
type Post @entity {
"""
The Post ID, the same as it is on the blockchain.
"""
id: ID!
"""
A One-to-One relationship with a Post. This field only has a value if the current Post is a Comment or a Reply to a Comment, and contains a relationship with a top level Regular Post.
"""
rootPost: Post
"""
A One-to-One relationship with a Post. This field only has a value if the current Post is a Reply to a Comment and contains a relationship with a Comment Post or another Reply (in case there is discussion within context of some Comment).
"""
parentPost: Post
"""
A One-to-One relationship with a Post which has been shared. The Current Post is a new Post which has been created as a result of the sharing action, and can contain an additional body as a comment on the shared Post. "sharedPost" is relationhip with the Post that was shared.
"""
sharedPost: Post
"""
Is the current Post a Comment to a Regular Post or a Comment Post?
"""
isComment: Boolean! @index
"""
Is the current post hidden?
"""
hidden: Boolean! @index
"""
A One-To-One relationship with the Account entity of a Post's owner. Currently we do not have Post transfer functionality.
"""
ownedByAccount: Account!
"""
A One-To-One relationship with the Account entity of a Post's creator.
"""
createdByAccount: Account!
"""
The block height when a Post was created.
"""
createdAtBlock: BigInt
"""
The DateTime when a Post was created.
"""
createdAtTime: DateTime @index
"""
The day when a Post was created.
"""
createdOnDay: DateTime
"""
The time when a Post was created.
"""
updatedAtTime: DateTime
"""
A One-To-One relationship with a Space that the current Post has been created in. It can be null if the Post is deleted (moved to Space with ID === null)
"""
space: Space
"""
The type of Post (Comment, SharedPost, or RegularPost)
"""
kind: PostKind @index
"""
A One-To-Many relationship between a Regular Post and the Accounts that follow the post through PostFollowers (foreign key - "followingPost")
(currently, a post is only followed by its creator)
"""
postFollowers: [PostFollowers] @derivedFrom(field: "followingPost")
"""
A One-To-Many relationship between a Comment Post or Comment Reply and the Accounts that follow the Comment through CommentFollowers (foreign key - "followingComment")
(currently, a post is only followed by its creator)
"""
commentFollowers: [CommentFollowers] @derivedFrom(field: "followingComment")
"""
The total number of followers that a Post has.
"""
followersCount: Int! @index
"""
The total number of replies to the current Post.
"""
repliesCount: Int!
"""
The total number of public (non-hidden) replies to the current Post.
"""
publicRepliesCount: Int! @index
"""
The total number of hidden replies to the current Post.
"""
hiddenRepliesCount: Int!
"""
How many times the current Post has been shared.
"""
sharesCount: Int! @index
"""
The total number of UpVote reactions to the current Post.
"""
upvotesCount: Int! @index
"""
The total number of DownVote reactions to the current Post.
"""
downvotesCount: Int! @index
"""
The total number of all reactions to the current Post.
"""
reactionsCount: Int! @index
"""
A One-To-Many relationship with Reactions for the current Post (foreign key - "post")
"""
reactions: [Reaction] @derivedFrom(field: "post")
"""
The title of the Post (IPFS content)
"""
title: String
"""
The URL for the Post's cover image (IPFS content)
"""
image: String
"""
The link of the Post (IPFS content)
"""
link: String
"""
Post canonical URL (IPFS content)
"""
canonical: String
"""
The CID of the content on IPFS.
"""
content: String
"""
Post slug URL (IPFS content)
"""
slug: String
"""
The body text of the Post (IPFS content)
"""
body: String
"""
The summary of the Post body
"""
summary: String
"""
Is the Post body longer than the summary?
"""
isShowMore: Boolean
"""
! Deprecated field and will be removed !
"""
meta: String
"""
A list of a Post's tags, converted to a string with "comma" as a separator (IPFS content)
"""
tagsOriginal: String
"""
The Post format (IPFS content)
"""
format: String
"""
The ID of the tweet attached to the current Post (IPFS content)
"""
tweetId: String
"""
The details of the tweet, such as creation time, username of the poster, etc. (IPFS content)
"""
tweetDetails: TweetDetails
"""
! Deprecated field and will be removed !
"""
proposalIndex: Int # postContent.meta[0]
"""
The properties of a Post from its IPFS content which are not supported by the current squid's DB schema.
"""
experimental: JSON
"""
The extensions published with this Post.
"""
extensions: [ContentExtension]! @derivedFrom(field: "parentPost")
pinnedByExtensions: [ExtensionPinnedResource] @derivedFrom(field: "post")
inReplyToKind: InReplyToKind
inReplyToPost: Post
# """
# The ID of the application that the current Post was created with.
# """
# appId: String
}
"""
The Post Reaction entity
"""
type Reaction @entity {
"""
The ID of a Reaction, which will have the same value and reaction ID on the blockchain.
"""
id: ID!
"""
A One-to-One relationship with the Post that the current reaction has been made for.
"""
post: Post!
"""
A One-to-One relationship with the Account that created the Reaction.
"""
account: Account!
"""
The type of Reaction (Upvote, Downvote).
"""
kind: ReactionKind! @index
"""
The status of a Reaction (Active, Deleted). This is a synthetic value.
It does not exist on the blockchain and is only used in the squid.
"""
status: Status! @index
"""
The block height when a Reaction was created.
"""
createdAtBlock: BigInt!
"""
The DateTime when a Reaction was created.
"""
createdAtTime: DateTime!
"""
The Block height when a Reaction was updated.
"""
updatedAtBlock: BigInt
"""
The DateTime when a Reaction was updated.
"""
updatedAtTime: DateTime
}
"""
The Space entity
"""
type Space @entity {
"""
The ID of a Space, which will have the same value and Space ID on the blockchain.
"""
id: ID!
"""
A One-To-One relationship with the Account entity that created a Space.
"""
createdByAccount: Account!
"""
A One-To-One relationship with the Account entity that owns a Space.
"""
ownedByAccount: Account!
"""
A One-To-One relationship with the Account which uses the current Space as its profile.
"""
profileSpace: Account
"""
A source of profile data.
"""
profileSource: String
"""
The block height when a Space was created.
"""
createdAtBlock: BigInt
"""
The DateTime when a Space was created.
"""
createdAtTime: DateTime @index
"""
The day when a Space was created.
"""
createdOnDay: DateTime
"""
The DateTime when a Space was updated.
"""
updatedAtTime: DateTime
"""
The block height when a Space was updated.
"""
updatedAtBlock: BigInt
"""
A One-To-Many relationship with the Posts created within the current Space (foreign key - "space")
"""
posts: [Post]! @derivedFrom(field: "space")
"""
The total number of all Posts (public and hidden) in the current Space (post.length)
"""
postsCount: Int!
"""
The total number of public (non-hidden) Posts in the current Space (post.length)
"""
publicPostsCount: Int! @index
"""
The total number of hidden Posts in the current Space (post.length)
"""
hiddenPostsCount: Int!
"""
Is the Space hidden?
"""
hidden: Boolean! @index
"""
The CID of the content on IPFS
"""
content: String
"""
The name of a Space (IPFS content)
"""
name: String
"""
The URL of the Space's image (IPFS content)
"""
image: String
"""
The about text (bio) of a Space (IPFS content)
"""
about: String
"""
The summary of the content of a Space (IPFS content)
"""
summary: String
"""
Is the Space's "About" section longer than its summary?
"""
isShowMore: Boolean
"""
The email address of a Space (IPFS content)
"""
email: String
"""
A list of a Space's tags, converted to a string with "comma" as a separator (IPFS content)
"""
tagsOriginal: String
"""
A list of the Space's links converted to a string with "comma" as a separator (IPFS content)
"""
linksOriginal: String
"""
A list of a Space's interests converted to a string with "comma" as a separator (IPFS content)
"""
interestsOriginal: String
"""
Space format (IPFS content)
"""
format: String
"""
The username of a Space (will be removed in further versions as it is deprecated. You should use the username field instead.) (IPFS content)
"""
handle: String @index
"""
The properties of a Space from its IPFS content which are not supported by the current squid's DB schema.
"""
experimental: JSON
"""
Are followers allowed to post in the Space?
"""
canFollowerCreatePosts: Boolean
"""
Is this a public space where anyone can post?
"""
canEveryoneCreatePosts: Boolean
"""
Space permissions rule
"""
nonePermissions: SpacePermissions
"""
Space permissions rule
"""
everyonePermissions: SpacePermissions
"""
Space permissions rule
"""
followerPermissions: SpacePermissions
"""
Space permissions rule
"""
spaceOwnerPermissions: SpacePermissions
"""
A Many-To-Many relationship between a Space and the Accounts that follow it through SpaceFollowers (foreign key - "followingSpace")
"""
followers: [SpaceFollowers]! @derivedFrom(field: "followingSpace")
"""
The total number of Accounts following a Space
"""
followersCount: Int! @index
# """
# The ID of application current Space has been created through.
# """
# appId: String
"""
The username of a Space (IPFS content)
"""
username: String @index
pinnedByExtensions: [ExtensionPinnedResource] @derivedFrom(field: "space")
}
"""
The Activity entity, which represents any activity on the blockchain (within the list of tracked events).
"""
type Activity @entity {
"""
The ID of an Activity. It has the following structure: <blockNumber>-<indexInBlock>-<md5Hash(eventName)>` (e.g. 1093209-1001-1ee8fd8482c322254acff29a8f52f5e1)
"""
id: ID!
"""
A One-To-One relationship with the Account that initiated the current activity (it's usually a caller Account)
"""
account: Account!
"""
The block height when an activity was done
"""
blockNumber: BigInt!
"""
The event's index in the block
"""
eventIndex: Int!
"""
The event's name
"""
event: EventName! @index
"""
A One-to-One relationship with the following Account if the event is `AccountFollowed` or `AccountUnfollowed`.
"""
followingAccount: Account
"""
A One-to-One relationship with the Space that is involved in the current Activity
"""
space: Space
"""
A One-to-One relationship with the previous Space if the event is `PostMoved` or `DomainMetaUpdated`
"""
spacePrev: Space
"""
A One-to-One relationship with the previous owner's Account if the event is "SpaceOwnershipTransferAccepted"
"""
newOwner: Account
"""
A One-to-One relationship with the new owner's Account if the event is "SpaceOwnershipTransferAccepted"
"""
oldOwner: Account
"""
A One-to-One relationship with the domain recipient Account
"""
domainRecipient: Account
"""
A One-to-One relationship with the Post that is involved in the current Activity
"""
post: Post
"""
A One-to-One relationship with the Reaction that is involved in the current Activity
"""
reaction: Reaction
"""
The DateTime when the current activity was done
"""
date: DateTime!
"""
Is this Activity the most recent in the list of Activities of this type (same event) from this account?
"""
aggregated: Boolean @index
"""
The total number of Activities of the same event type for a specific Account.
"""
aggCount: BigInt!
"""
The username of a Space or Account which was registered or updated in this particular Activity.
"""
username: String
"""
The ContentExtension which was created in this particular Activity.
"""
extension: ContentExtension
}
"""
The junction table for the Many-to-Many relationship between follower and following Accounts
"""
type AccountFollowers @entity {
followerAccount: Account!
followingAccount: Account!
}
"""
The junction table for Many-to-Many relationship between follower Account and following Space
"""
type SpaceFollowers @entity {
followerAccount: Account!
followingSpace: Space!
}
"""
The junction table for Many-to-Many relationship between follower Account and following Post
"""
type PostFollowers @entity {
followerAccount: Account!
followingPost: Post!
}
"""
The junction table for Many-to-Many relationship between follower Account and following Comment
"""
type CommentFollowers @entity {
followerAccount: Account!
followingComment: Post!
}
"""
The junction table for Many-to-Many relationship between Account and Activity
"""
type NewsFeed @entity {
account: Account!
activity: Activity!
}
"""
The junction table for Many-to-Many relationship between Account and Notification
"""
type Notification @entity {
account: Account!
activity: Activity!
}
type InBatchNotifications @entity {
id: ID!
batchStartBlockNumber: BigInt!
batchEndBlockNumber: BigInt!
activityIds: [String!]!
}
"""
The junction table for Many-to-Many relationship between Substrate Accounts and Ethereum Accounts
"""
type EvmSubstrateAccountLink @entity {
"""
Evm account
"""
evmAccount: EvmAccount!
"""
Substrate account
"""
substrateAccount: Account!
"""
Is the link of this particular account active? (This is necessary for the soft deletion of the link.)
"""
active: Boolean!
"""
The block height when a EvmSubstrateAccountLink was created.
"""
createdAtBlock: BigInt
"""
The DateTime when a EvmSubstrateAccountLink was created.
"""
createdAtTime: DateTime @index
}
"""
The permission settings of a Space
"""
type SpacePermissions {
manageRoles: Boolean
representSpaceInternally: Boolean
representSpaceExternally: Boolean
updateSpace: Boolean
createSubspaces: Boolean
updateOwnSubspaces: Boolean
deleteOwnSubspaces: Boolean
hideOwnSubspaces: Boolean
updateAnySubspace: Boolean
deleteAnySubspace: Boolean
hideAnySubspace: Boolean
createPosts: Boolean
updateOwnPosts: Boolean
deleteOwnPosts: Boolean
hideOwnPosts: Boolean
updateAnyPost: Boolean
deleteAnyPost: Boolean
hideAnyPost: Boolean
createComments: Boolean
updateOwnComments: Boolean
deleteOwnComments: Boolean
hideOwnComments: Boolean
hideAnyComment: Boolean
upvote: Boolean
downvote: Boolean
share: Boolean
overrideSubspacePermissions: Boolean
overridePostPermissions: Boolean
suggestEntityStatus: Boolean
updateEntityStatus: Boolean
updateSpaceSettings: Boolean
}
"""
Detailed information about the Tweet attached to a Post
"""
type TweetDetails {
createdAt: String
username: String
authorId: String
editHistoryTweetIds: [String]
conversationId: String
inReplyToUserId: String
referencedTweets: [ReferencedTweetDetails]
attachments: TweetAttachmentsDetails
lang: String
}
type ReferencedTweetDetails {
id: String
type: String
}
type TweetAttachmentsDetails {
mediaKeys: [String]
pollIds: [String]
}
type IpfsFetchLog @entity {
id: ID!
cid: String
blockHeight: Int!