2024-02-02 15:03:44 +03: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 17:45:37 -03:00
|
|
|
load_authors_search(text: String!, limit: Int, offset: Int): [Author!] # Search for authors by name or bio
|
2024-02-02 15:03:44 +03:00
|
|
|
|
2025-05-16 09:23:48 +03:00
|
|
|
# Auth queries
|
2025-05-20 00:00:24 +03:00
|
|
|
logout: AuthResult!
|
2025-05-16 09:23:48 +03:00
|
|
|
me: AuthResult!
|
|
|
|
isEmailUsed(email: String!): Boolean!
|
|
|
|
isAdmin: Boolean!
|
|
|
|
getOAuthProviders: [OAuthProvider!]!
|
|
|
|
getRoles: [RolesInfo!]!
|
|
|
|
|
2024-02-02 15:03:44 +03:00
|
|
|
# community
|
|
|
|
get_community: Community
|
|
|
|
get_communities_all: [Community]
|
2024-10-21 11:53:00 +03:00
|
|
|
get_communities_by_author(slug: String, user: String, author_id: Int): [Community]
|
2024-02-02 15:03:44 +03:00
|
|
|
|
|
|
|
# follower
|
|
|
|
get_shout_followers(slug: String, shout_id: Int): [Author]
|
2024-05-18 19:30:25 +03:00
|
|
|
get_topic_followers(slug: String): [Author]
|
2024-05-21 01:40:57 +03:00
|
|
|
get_topic_authors(slug: String): [Author]
|
2024-02-21 11:52:57 +03:00
|
|
|
get_author_followers(slug: String, user: String, author_id: Int): [Author]
|
2024-05-08 23:42:57 +03:00
|
|
|
get_author_follows(slug: String, user: String, author_id: Int): CommonResult!
|
2024-02-23 21:10:11 +03: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 15:03:44 +03:00
|
|
|
|
|
|
|
# reaction
|
|
|
|
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
2024-11-01 09:50:19 +03: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 15:03:44 +03:00
|
|
|
|
2025-03-22 13:37:43 +03: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 15:03:44 +03:00
|
|
|
# reader
|
2024-10-23 11:22:07 +03:00
|
|
|
get_shout(slug: String, shout_id: Int): Shout
|
2024-02-02 15:03:44 +03:00
|
|
|
load_shouts_by(options: LoadShoutsOptions): [Shout]
|
2024-11-01 09:50:19 +03:00
|
|
|
load_shouts_search(text: String!, options: LoadShoutsOptions): [SearchResult]
|
2025-04-01 16:01:09 -03:00
|
|
|
get_search_results_count(text: String!): CountResult!
|
2024-11-01 09:50:19 +03:00
|
|
|
load_shouts_bookmarked(options: LoadShoutsOptions): [Shout]
|
|
|
|
|
2024-11-18 11:31:19 +03:00
|
|
|
# rating
|
|
|
|
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
|
2024-11-18 23:23:20 +03:00
|
|
|
get_my_rates_comments(comments: [Int!]!): [MyRateComment]
|
2024-11-18 11:31:19 +03:00
|
|
|
|
2024-11-01 11:09:16 +03: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 15:03:44 +03:00
|
|
|
load_shouts_feed(options: LoadShoutsOptions): [Shout]
|
2024-11-01 09:50:19 +03:00
|
|
|
load_shouts_unrated(options: LoadShoutsOptions): [Shout]
|
|
|
|
load_shouts_coauthored(options: LoadShoutsOptions): [Shout]
|
|
|
|
load_shouts_discussed(options: LoadShoutsOptions): [Shout]
|
2024-03-05 20:12:17 +03:00
|
|
|
|
|
|
|
# editor
|
2024-03-06 22:18:32 +03:00
|
|
|
get_my_shout(shout_id: Int!): CommonResult!
|
2024-05-06 21:14:17 +03:00
|
|
|
get_shouts_drafts: CommonResult!
|
2025-02-09 17:18:01 +03:00
|
|
|
load_drafts: CommonResult!
|
2024-02-02 15:03:44 +03:00
|
|
|
|
|
|
|
# topic
|
|
|
|
get_topic(slug: String!): Topic
|
|
|
|
get_topics_all: [Topic]
|
|
|
|
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
|
2025-03-22 18:49:15 +03:00
|
|
|
get_topics_by_community(community_id: Int!, limit: Int, offset: Int): [Topic]
|
2024-03-04 10:35:33 +03:00
|
|
|
|
|
|
|
# notifier
|
2024-03-04 15:48:04 +03:00
|
|
|
load_notifications(after: Int!, limit: Int, offset: Int): NotificationsResult!
|
2024-02-02 15:03:44 +03:00
|
|
|
}
|