2024-02-02 12:03:44 +00:00
|
|
|
type Query {
|
|
|
|
# author
|
|
|
|
get_author(slug: String, author_id: Int): Author
|
|
|
|
get_authors_all: [Author]
|
|
|
|
load_authors_by(by: AuthorsBy!, limit: Int, offset: Int): [Author]
|
2025-04-29 20:45:37 +00:00
|
|
|
load_authors_search(text: String!, limit: Int, offset: Int): [Author!] # Search for authors by name or bio
|
2024-02-02 12:03:44 +00:00
|
|
|
|
2025-05-16 06:23:48 +00:00
|
|
|
# Auth queries
|
2025-05-19 21:00:24 +00:00
|
|
|
logout: AuthResult!
|
2025-05-16 06:23:48 +00:00
|
|
|
me: AuthResult!
|
|
|
|
isEmailUsed(email: String!): Boolean!
|
|
|
|
isAdmin: Boolean!
|
|
|
|
getOAuthProviders: [OAuthProvider!]!
|
|
|
|
getRoles: [RolesInfo!]!
|
|
|
|
|
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
|
|
|
|
2025-06-30 18:46:53 +00:00
|
|
|
# collection
|
|
|
|
get_collection(slug: String!): Collection
|
|
|
|
get_collections_all: [Collection]
|
|
|
|
get_collections_by_author(slug: String, user: String, author_id: Int): [Collection]
|
|
|
|
|
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
|
|
|
|
2025-03-22 10:37:43 +00:00
|
|
|
# branched comments pagination
|
|
|
|
load_comments_branch(shout: Int!, parent_id: Int, limit: Int, offset: Int, sort: ReactionSort, children_limit: Int, children_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]
|
2025-04-01 19:01:09 +00:00
|
|
|
get_search_results_count(text: String!): CountResult!
|
2024-11-01 06:50:19 +00:00
|
|
|
load_shouts_bookmarked(options: LoadShoutsOptions): [Shout]
|
|
|
|
|
2024-11-18 08:31:19 +00:00
|
|
|
# rating
|
|
|
|
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
|
2024-11-18 20:23:20 +00:00
|
|
|
get_my_rates_comments(comments: [Int!]!): [MyRateComment]
|
2024-11-18 08:31:19 +00:00
|
|
|
|
2025-06-01 23:56:11 +00:00
|
|
|
# public feeds
|
2024-11-01 08:09:16 +00:00
|
|
|
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!
|
2025-02-09 14:18:01 +00:00
|
|
|
load_drafts: CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# topic
|
|
|
|
get_topic(slug: String!): Topic
|
2025-06-30 18:25:26 +00:00
|
|
|
get_topics_all: [Topic]!
|
2024-02-02 12:03:44 +00:00
|
|
|
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
|
2025-03-22 15:49:15 +00:00
|
|
|
get_topics_by_community(community_id: Int!, limit: Int, offset: 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
|
|
|
}
|