working-on

This commit is contained in:
2022-08-11 12:09:57 +03:00
parent 8aec6c6e07
commit 83f5f280b2
30 changed files with 229 additions and 86 deletions

View File

@@ -97,6 +97,12 @@ input CommunityInput {
pic: String
}
input CollectionInput {
title: String!
desc: String
pic: String
}
input TopicInput {
slug: String!
community: String!
@@ -169,6 +175,11 @@ type Mutation {
updateCommunity(community: CommunityInput!): Result!
deleteCommunity(slug: String!): Result!
# collection
createCollection(collection: CollectionInput!): Result!
updateCollection(collection: CollectionInput!): Result!
deleteCollection(slug: String!): Result!
# collab
inviteAuthor(author: String!, shout: String!): Result!
removeAuthor(author: String!, shout: String!): Result!
@@ -239,6 +250,9 @@ type Query {
topicsByCommunity(community: String!): [Topic]!
topicsByAuthor(author: String!): [Topic]!
# collection
getCollection(author: String!, slug: String!): Collection!
# communities
getCommunity(slug: String): Community!
getCommunities: [Community]! # all
@@ -404,6 +418,15 @@ type Community {
createdBy: User!
}
type Collection {
slug: String!
title: String!
desc: String
pic: String!
createdAt: DateTime!
createdBy: User!
}
type TopicStat {
shouts: Int!
followers: Int!