This commit is contained in:
parent
1b4315fcce
commit
18521f3fc5
|
@ -109,7 +109,6 @@ async def get_my_followed(_, info):
|
||||||
return {'topics': topics_query, 'authors': authors_query, 'communities': communities}
|
return {'topics': topics_query, 'authors': authors_query, 'communities': communities}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@query.field('get_shout_followers')
|
@query.field('get_shout_followers')
|
||||||
def get_shout_followers(_, _info, slug: str = '', shout_id: int | None = None) -> List[Author]:
|
def get_shout_followers(_, _info, slug: str = '', shout_id: int | None = None) -> List[Author]:
|
||||||
followers = []
|
followers = []
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
type Mutation {
|
type Mutation {
|
||||||
# author
|
# author
|
||||||
rate_author(rated_slug: String!, value: Int!): Result!
|
rate_author(rated_slug: String!, value: Int!): CommonResult!
|
||||||
update_profile(profile: ProfileInput!): Result!
|
update_profile(profile: ProfileInput!): CommonResult!
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
create_shout(inp: ShoutInput!): Result!
|
create_shout(inp: ShoutInput!): CommonResult!
|
||||||
update_shout(shout_id: Int!, shout_input: ShoutInput, publish: Boolean): Result!
|
update_shout(shout_id: Int!, shout_input: ShoutInput, publish: Boolean): CommonResult!
|
||||||
delete_shout(shout_id: Int!): Result!
|
delete_shout(shout_id: Int!): CommonResult!
|
||||||
|
|
||||||
# follower
|
# follower
|
||||||
follow(what: FollowingEntity!, slug: String!): Result!
|
follow(what: FollowingEntity!, slug: String!): CommonResult!
|
||||||
unfollow(what: FollowingEntity!, slug: String!): Result!
|
unfollow(what: FollowingEntity!, slug: String!): CommonResult!
|
||||||
|
|
||||||
# topic
|
# topic
|
||||||
create_topic(input: TopicInput!): Result!
|
create_topic(input: TopicInput!): CommonResult!
|
||||||
update_topic(input: TopicInput!): Result!
|
update_topic(input: TopicInput!): CommonResult!
|
||||||
delete_topic(slug: String!): Result!
|
delete_topic(slug: String!): CommonResult!
|
||||||
|
|
||||||
# reaction
|
# reaction
|
||||||
create_reaction(reaction: ReactionInput!): Result!
|
create_reaction(reaction: ReactionInput!): CommonResult!
|
||||||
update_reaction(id: Int!, reaction: ReactionInput!): Result!
|
update_reaction(id: Int!, reaction: ReactionInput!): CommonResult!
|
||||||
delete_reaction(reaction_id: Int!): Result!
|
delete_reaction(reaction_id: Int!): CommonResult!
|
||||||
|
|
||||||
# collab
|
# collab
|
||||||
create_invite(slug: String, author_id: Int): Result!
|
create_invite(slug: String, author_id: Int): CommonResult!
|
||||||
remove_author(slug: String, author_id: Int): Result!
|
remove_author(slug: String, author_id: Int): CommonResult!
|
||||||
remove_invite(invite_id: Int!): Result!
|
remove_invite(invite_id: Int!): CommonResult!
|
||||||
accept_invite(invite_id: Int!): Result!
|
accept_invite(invite_id: Int!): CommonResult!
|
||||||
reject_invite(invite_id: Int!): Result!
|
reject_invite(invite_id: Int!): CommonResult!
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ type Query {
|
||||||
get_shouts_drafts: [Shout]
|
get_shouts_drafts: [Shout]
|
||||||
|
|
||||||
# follower
|
# follower
|
||||||
get_my_followed: Result # { authors topics communities }
|
get_my_followed: CommonResult! # { authors topics communities }
|
||||||
get_shout_followers(slug: String, shout_id: Int): [Author]
|
get_shout_followers(slug: String, shout_id: Int): [Author]
|
||||||
|
|
||||||
# reaction
|
# reaction
|
||||||
|
|
|
@ -146,7 +146,7 @@ type Topic {
|
||||||
|
|
||||||
# output type
|
# output type
|
||||||
|
|
||||||
type Result {
|
type CommonResult {
|
||||||
error: String
|
error: String
|
||||||
slugs: [String]
|
slugs: [String]
|
||||||
shout: Shout
|
shout: Shout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user