From b4897606171fe1758ef33bf85a4c1d86066200e7 Mon Sep 17 00:00:00 2001 From: Tony Rewin Date: Fri, 26 Nov 2021 03:41:20 +0300 Subject: [PATCH] community input --- schema.graphql | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/schema.graphql b/schema.graphql index 3d8d5f5d..d4060f09 100644 --- a/schema.graphql +++ b/schema.graphql @@ -41,6 +41,12 @@ input ProfileInput { userpic: String } +input CommunityInput { + title + desc + pic +} + type ShoutResult { error: String shout: Shout @@ -95,14 +101,14 @@ type Mutation { # topics topicSubscribe(slug: String!): Result! topicUnsubscribe(slug: String!): Result! - + createComment(body: String!, shout: Int!, replyTo: Int): CommentResult! updateComment(id: Int!, body: String!): CommentResult! deleteComment(id: Int!): Result! rateComment(id: Int!, value: Int!): Result! - + createCommunity(title: String!, desc: String!): Community! - updateCommunity(id: Int!, title: String!, desc: String!, pic: String!): Community! + updateCommunity(community: CommunityInput!): Community! deleteCommunity(id: Int!): Result! } @@ -142,7 +148,7 @@ type Query { topicsByAuthor(author: String!): [Topic]! # getOnlineUsers: [User!]! - + # communities getCommunity(slug: String): Community! getCommunities: [Community]!