Files
core/schema/query.graphql

48 lines
1.8 KiB
GraphQL
Raw Normal View History

2024-02-02 15:03:44 +03: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-27 01:41:47 +03:00
# search_authors(what: String!): [Author]
2024-02-02 15:03:44 +03:00
# community
get_community: Community
get_communities_all: [Community]
# follower
get_shout_followers(slug: String, shout_id: Int): [Author]
2024-02-21 11:52:57 +03:00
get_topic_followers(slug: String, topic_id: Int): [Author]
get_author_followers(slug: String, user: String, author_id: Int): [Author]
2024-03-28 15:04:46 +03:00
get_author_follows(slug: String, user: String, author_id: Int): AuthorFollowsResult!
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-21 11:59:47 +03:00
load_shouts_followed(follower_id: Int!, limit: Int, offset: Int): [Shout] # userReactedShouts
2024-02-02 15:03:44 +03:00
# reaction
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
# reader
2024-05-01 02:46:19 +03:00
get_shout(slug: String): Shout
2024-02-02 15:03:44 +03:00
load_shouts_by(options: LoadShoutsOptions): [Shout]
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_random_top(options: LoadShoutsOptions): [Shout]
2024-02-03 17:35:57 +03:00
load_shouts_random_topic(limit: Int!): CommonResult! # { topic shouts }
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!
2024-02-02 15:03:44 +03:00
# 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]
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
}