55 lines
2.2 KiB
GraphQL
55 lines
2.2 KiB
GraphQL
type Query {
|
|
# author
|
|
get_author(slug: String, author_id: Int): Author
|
|
get_author_id(user: String!): Author
|
|
get_authors_all: [Author]
|
|
load_authors_by(by: AuthorsBy!, limit: Int, offset: Int): [Author]
|
|
# search_authors(what: String!): [Author]
|
|
|
|
# community
|
|
get_community: Community
|
|
get_communities_all: [Community]
|
|
|
|
# follower
|
|
get_shout_followers(slug: String, shout_id: Int): [Author]
|
|
get_topic_followers(slug: String): [Author]
|
|
get_topic_authors(slug: String): [Author]
|
|
get_author_followers(slug: String, user: String, author_id: Int): [Author]
|
|
get_author_follows(slug: String, user: String, author_id: Int): CommonResult!
|
|
get_author_follows_topics(slug: String, user: String, author_id: Int): [Topic]
|
|
get_author_follows_authors(slug: String, user: String, author_id: Int): [Author]
|
|
load_shouts_followed(limit: Int, offset: Int): [Shout]
|
|
load_shouts_followed_by(slug: String, limit: Int, offset: Int): [Shout]
|
|
|
|
# reaction
|
|
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
|
|
|
# reader
|
|
get_shout(slug: String): Shout
|
|
load_shouts_by(options: LoadShoutsOptions): [Shout]
|
|
load_shout_comments(shout: Int!, limit: Int, offset: Int): [Reaction]
|
|
load_shout_ratings(shout: Int!, limit: Int, offset: Int): [Reaction]
|
|
load_comment_ratings(shout: Int!, limit: Int, offset: Int): [Reaction]
|
|
load_shouts_search(text: String!, limit: Int, offset: Int): [SearchResult]
|
|
load_shouts_feed(options: LoadShoutsOptions): [Shout]
|
|
load_shouts_unrated(limit: Int, offset: Int): [Shout]
|
|
load_shouts_coauthored(limit: Int, offset: Int): [Shout]
|
|
load_shouts_discussed(limit: Int, offset: Int): [Shout]
|
|
load_shouts_random_top(options: LoadShoutsOptions): [Shout]
|
|
load_shouts_random_topic(limit: Int!): CommonResult! # { topic shouts }
|
|
|
|
# editor
|
|
get_my_shout(shout_id: Int!): CommonResult!
|
|
get_shouts_drafts: CommonResult!
|
|
|
|
# topic
|
|
get_topic(slug: String!): Topic
|
|
get_topics_all: [Topic]
|
|
get_topics_random(amount: Int): [Topic]
|
|
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
|
|
get_topics_by_community(slug: String, community_id: Int): [Topic]
|
|
|
|
# notifier
|
|
load_notifications(after: Int!, limit: Int, offset: Int): NotificationsResult!
|
|
}
|