community input
This commit is contained in:
parent
cefc6dfb5d
commit
b489760617
|
@ -41,6 +41,12 @@ input ProfileInput {
|
||||||
userpic: String
|
userpic: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input CommunityInput {
|
||||||
|
title
|
||||||
|
desc
|
||||||
|
pic
|
||||||
|
}
|
||||||
|
|
||||||
type ShoutResult {
|
type ShoutResult {
|
||||||
error: String
|
error: String
|
||||||
shout: Shout
|
shout: Shout
|
||||||
|
@ -95,14 +101,14 @@ type Mutation {
|
||||||
# topics
|
# topics
|
||||||
topicSubscribe(slug: String!): Result!
|
topicSubscribe(slug: String!): Result!
|
||||||
topicUnsubscribe(slug: String!): Result!
|
topicUnsubscribe(slug: String!): Result!
|
||||||
|
|
||||||
createComment(body: String!, shout: Int!, replyTo: Int): CommentResult!
|
createComment(body: String!, shout: Int!, replyTo: Int): CommentResult!
|
||||||
updateComment(id: Int!, body: String!): CommentResult!
|
updateComment(id: Int!, body: String!): CommentResult!
|
||||||
deleteComment(id: Int!): Result!
|
deleteComment(id: Int!): Result!
|
||||||
rateComment(id: Int!, value: Int!): Result!
|
rateComment(id: Int!, value: Int!): Result!
|
||||||
|
|
||||||
createCommunity(title: String!, desc: String!): Community!
|
createCommunity(title: String!, desc: String!): Community!
|
||||||
updateCommunity(id: Int!, title: String!, desc: String!, pic: String!): Community!
|
updateCommunity(community: CommunityInput!): Community!
|
||||||
deleteCommunity(id: Int!): Result!
|
deleteCommunity(id: Int!): Result!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +148,7 @@ type Query {
|
||||||
topicsByAuthor(author: String!): [Topic]!
|
topicsByAuthor(author: String!): [Topic]!
|
||||||
|
|
||||||
# getOnlineUsers: [User!]!
|
# getOnlineUsers: [User!]!
|
||||||
|
|
||||||
# communities
|
# communities
|
||||||
getCommunity(slug: String): Community!
|
getCommunity(slug: String): Community!
|
||||||
getCommunities: [Community]!
|
getCommunities: [Community]!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user