This commit is contained in:
@@ -85,3 +85,10 @@ input NotificationSeenInput {
|
||||
notifications: [Int]
|
||||
thread: Int
|
||||
}
|
||||
|
||||
input CommunityInput {
|
||||
slug: String
|
||||
name: String
|
||||
desc: String
|
||||
pic: String
|
||||
}
|
||||
|
@@ -36,4 +36,11 @@ type Mutation {
|
||||
notification_mark_seen(notification_id: Int!, seen: Boolean): CommonResult!
|
||||
notifications_seen_after(after: Int!, seen: Boolean): CommonResult!
|
||||
notifications_seen_thread(thread_id: String!, seen: Boolean): CommonResult!
|
||||
|
||||
# community
|
||||
join_community(slug: String!): CommonResult!
|
||||
leave_community(slug: String!): CommonResult!
|
||||
create_community(input: CommunityInput!): CommonResult!
|
||||
update_community(input: CommunityInput!): CommonResult!
|
||||
delete_community(slug: String!): CommonResult!
|
||||
}
|
||||
|
@@ -99,6 +99,12 @@ type Stat {
|
||||
last_reacted_at: Int
|
||||
}
|
||||
|
||||
type CommunityStat {
|
||||
shouts: Int!
|
||||
followers: Int!
|
||||
authors: Int!
|
||||
}
|
||||
|
||||
type Community {
|
||||
id: Int!
|
||||
slug: String!
|
||||
@@ -107,6 +113,7 @@ type Community {
|
||||
pic: String!
|
||||
created_at: Int!
|
||||
created_by: Author!
|
||||
stat: CommunityStat
|
||||
}
|
||||
|
||||
type Collection {
|
||||
|
Reference in New Issue
Block a user