commynity-cudl
All checks were successful
Deploy on push / deploy (push) Successful in 1m5s

This commit is contained in:
2024-10-21 16:42:30 +03:00
parent c6f160c8cf
commit a4e48eb3f4
6 changed files with 106 additions and 4 deletions

View File

@@ -85,3 +85,10 @@ input NotificationSeenInput {
notifications: [Int]
thread: Int
}
input CommunityInput {
slug: String
name: String
desc: String
pic: String
}

View File

@@ -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!
}

View File

@@ -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 {