Improve topic sorting: add popular sorting by publications and authors count
This commit is contained in:
@@ -66,7 +66,7 @@ extend type Query {
|
||||
extend type Mutation {
|
||||
updateEnvVariable(key: String!, value: String!): Boolean!
|
||||
updateEnvVariables(variables: [EnvVariableInput!]!): Boolean!
|
||||
|
||||
|
||||
# Мутации для управления пользователями
|
||||
adminUpdateUser(user: AdminUserUpdateInput!): OperationResult!
|
||||
}
|
||||
}
|
||||
|
@@ -10,6 +10,9 @@ type Mutation {
|
||||
changePassword(oldPassword: String!, newPassword: String!): AuthSuccess!
|
||||
resetPassword(token: String!, newPassword: String!): AuthSuccess!
|
||||
requestPasswordReset(email: String!, lang: String): AuthSuccess!
|
||||
updateSecurity(email: String, old_password: String, new_password: String): SecurityUpdateResult!
|
||||
confirmEmailChange(token: String!): SecurityUpdateResult!
|
||||
cancelEmailChange: SecurityUpdateResult!
|
||||
|
||||
# author
|
||||
rate_author(rated_slug: String!, value: Int!): CommonResult!
|
||||
|
@@ -47,7 +47,7 @@ type Query {
|
||||
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
|
||||
get_my_rates_comments(comments: [Int!]!): [MyRateComment]
|
||||
|
||||
# public feeds
|
||||
# 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
|
||||
|
@@ -130,7 +130,7 @@ type Draft {
|
||||
cover_caption: String
|
||||
lang: String
|
||||
seo: String
|
||||
|
||||
|
||||
# auto
|
||||
updated_at: Int
|
||||
deleted_at: Int
|
||||
@@ -290,6 +290,12 @@ type AuthResult {
|
||||
author: Author
|
||||
}
|
||||
|
||||
type SecurityUpdateResult {
|
||||
success: Boolean!
|
||||
error: String
|
||||
author: Author
|
||||
}
|
||||
|
||||
type Permission {
|
||||
resource: String!
|
||||
action: String!
|
||||
@@ -321,4 +327,3 @@ type RolesInfo {
|
||||
type CountResult {
|
||||
count: Int!
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user