2024-02-02 12:03:44 +00:00
|
|
|
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]
|
2024-04-26 22:41:47 +00:00
|
|
|
# search_authors(what: String!): [Author]
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# community
|
|
|
|
get_community: Community
|
|
|
|
get_communities_all: [Community]
|
2024-10-21 08:53:00 +00:00
|
|
|
get_communities_by_author(slug: String, user: String, author_id: Int): [Community]
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# follower
|
|
|
|
get_shout_followers(slug: String, shout_id: Int): [Author]
|
2024-05-18 16:30:25 +00:00
|
|
|
get_topic_followers(slug: String): [Author]
|
2024-05-20 22:40:57 +00:00
|
|
|
get_topic_authors(slug: String): [Author]
|
2024-02-21 08:52:57 +00:00
|
|
|
get_author_followers(slug: String, user: String, author_id: Int): [Author]
|
2024-05-08 20:42:57 +00:00
|
|
|
get_author_follows(slug: String, user: String, author_id: Int): CommonResult!
|
2024-02-23 18:10:11 +00:00
|
|
|
get_author_follows_topics(slug: String, user: String, author_id: Int): [Topic]
|
|
|
|
get_author_follows_authors(slug: String, user: String, author_id: Int): [Author]
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# reaction
|
|
|
|
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
2024-11-01 06:50:19 +00:00
|
|
|
load_shout_comments(shout: Int!, limit: Int, offset: Int): [Reaction]
|
|
|
|
load_shout_ratings(shout: Int!, limit: Int, offset: Int): [Reaction]
|
|
|
|
load_comment_ratings(comment: Int!, limit: Int, offset: Int): [Reaction]
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# reader
|
2024-10-23 08:22:07 +00:00
|
|
|
get_shout(slug: String, shout_id: Int): Shout
|
2024-02-02 12:03:44 +00:00
|
|
|
load_shouts_by(options: LoadShoutsOptions): [Shout]
|
2024-11-01 06:50:19 +00:00
|
|
|
load_shouts_search(text: String!, options: LoadShoutsOptions): [SearchResult]
|
|
|
|
load_shouts_bookmarked(options: LoadShoutsOptions): [Shout]
|
|
|
|
|
2024-11-01 08:09:16 +00:00
|
|
|
# public feeds
|
|
|
|
load_shouts_with_topic(slug: String, options: LoadShoutsOptions): [Shout] # topic feed
|
|
|
|
load_shouts_random_top(options: LoadShoutsOptions): [Shout] # random order, fixed filter, limit offset can be used
|
|
|
|
load_shouts_authored_by(slug: String, options: LoadShoutsOptions): [Shout] # author feed
|
|
|
|
load_shouts_followed_by(slug: String, options: LoadShoutsOptions): [Shout] # another author feed
|
|
|
|
|
|
|
|
# my feeds
|
2024-02-02 12:03:44 +00:00
|
|
|
load_shouts_feed(options: LoadShoutsOptions): [Shout]
|
2024-11-01 06:50:19 +00:00
|
|
|
load_shouts_unrated(options: LoadShoutsOptions): [Shout]
|
|
|
|
load_shouts_coauthored(options: LoadShoutsOptions): [Shout]
|
|
|
|
load_shouts_discussed(options: LoadShoutsOptions): [Shout]
|
2024-03-05 17:12:17 +00:00
|
|
|
|
|
|
|
# editor
|
2024-03-06 19:18:32 +00:00
|
|
|
get_my_shout(shout_id: Int!): CommonResult!
|
2024-05-06 18:14:17 +00:00
|
|
|
get_shouts_drafts: CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# topic
|
|
|
|
get_topic(slug: String!): Topic
|
|
|
|
get_topics_all: [Topic]
|
|
|
|
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
|
|
|
|
get_topics_by_community(slug: String, community_id: Int): [Topic]
|
2024-03-04 07:35:33 +00:00
|
|
|
|
|
|
|
# notifier
|
2024-03-04 12:48:04 +00:00
|
|
|
load_notifications(after: Int!, limit: Int, offset: Int): NotificationsResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
}
|