This commit is contained in:
parent
af5746c5d8
commit
bdae67804e
|
@ -291,44 +291,47 @@ type Result {
|
||||||
# Мутации
|
# Мутации
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createShout(inp: ShoutInput!): Result!
|
createShout(inp: ShoutInput!): Result!
|
||||||
updateShout(shout_id: Int!, shout_input: ShoutInput, publish: Boolean): Result!
|
updateShout(shout_id: Int!, shout_input: ShoutInput, publish: Boolean): Result!
|
||||||
deleteShout(shout_id: Int!): Result!
|
deleteShout(shout_id: Int!): Result!
|
||||||
rateAuthor(slug: String!, value: Int!): Result!
|
rateAuthor(slug: String!, value: Int!): Result!
|
||||||
updateOnlineStatus: Result!
|
updateOnlineStatus: Result!
|
||||||
updateProfile(profile: ProfileInput!): Result!
|
updateProfile(profile: ProfileInput!): Result!
|
||||||
createTopic(input: TopicInput!): Result!
|
createTopic(input: TopicInput!): Result!
|
||||||
updateTopic(input: TopicInput!): Result!
|
updateTopic(input: TopicInput!): Result!
|
||||||
destroyTopic(slug: String!): Result!
|
destroyTopic(slug: String!): Result!
|
||||||
createReaction(reaction: ReactionInput!): Result!
|
createReaction(reaction: ReactionInput!): Result!
|
||||||
updateReaction(id: Int!, reaction: ReactionInput!): Result!
|
updateReaction(id: Int!, reaction: ReactionInput!): Result!
|
||||||
deleteReaction(id: Int!): Result!
|
deleteReaction(id: Int!): Result!
|
||||||
follow(what: FollowingEntity!, slug: String!): Result!
|
follow(what: FollowingEntity!, slug: String!): Result!
|
||||||
unfollow(what: FollowingEntity!, slug: String!): Result!
|
unfollow(what: FollowingEntity!, slug: String!): Result!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Запросы
|
# Запросы
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
loadShout(slug: String, shout_id: Int): Shout
|
loadShout(slug: String, shout_id: Int): Shout
|
||||||
loadShouts(options: LoadShoutsOptions): [Shout]
|
loadShouts(options: LoadShoutsOptions): [Shout]
|
||||||
loadFeed(options: LoadShoutsOptions): [Shout]
|
loadFeed(options: LoadShoutsOptions): [Shout]
|
||||||
loadDrafts: [Shout]
|
loadDrafts: [Shout]
|
||||||
|
|
||||||
loadReactionsBy(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
loadReactionsBy(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
||||||
followedReactions(follower_id: Int!): [Shout]
|
followedReactions(follower_id: Int!): [Shout]
|
||||||
|
|
||||||
authorFollowers(slug: String!): [Author]
|
authorsAll: [Author]
|
||||||
authorFollowedAuthors(slug: String!): [Author]
|
authorFollowers(slug: String!): [Author]
|
||||||
authorFollowedTopics(slug: String!): [Topic]
|
authorFollowedAuthors(slug: String!): [Author]
|
||||||
loadAuthorsBy(by: AuthorsBy, limit: Int, offset: Int): [Author]
|
authorFollowedTopics(slug: String!): [Topic]
|
||||||
authorsAll: [Author]
|
loadAuthorsBy(by: AuthorsBy, limit: Int, offset: Int): [Author]
|
||||||
getAuthor(slug: String!): Author
|
getAuthor(slug: String!): Author
|
||||||
|
|
||||||
getTopic(slug: String!): Topic
|
topicsAll: [Topic]
|
||||||
topicsAll: [Topic]
|
getTopic(slug: String!): Topic
|
||||||
topicsRandom(amount: Int): [Topic]
|
topicsRandom(amount: Int): [Topic]
|
||||||
topicsByCommunity(community: String!): [Topic]
|
topicsByCommunity(community: String!): [Topic]
|
||||||
topicsByAuthor(author_id: Int!): [Topic]
|
topicsByAuthor(author_id: Int!): [Topic]
|
||||||
}
|
|
||||||
|
communitiesAll: [Community]
|
||||||
|
getCommunity: Community
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user