simpler-parent-select

This commit is contained in:
2025-07-01 01:20:48 +03:00
parent 2683982180
commit bb41c02d62
18 changed files with 3281 additions and 49 deletions

View File

@@ -25,6 +25,12 @@ input TopicInput {
parent_ids: [Int]
}
input TopicMergeInput {
target_topic_id: Int!
source_topic_ids: [Int!]!
preserve_target_properties: Boolean
}
input DraftInput {
id: Int
# no created_at, updated_at, deleted_at, updated_by, deleted_by

View File

@@ -37,6 +37,8 @@ type Mutation {
update_topic(topic_input: TopicInput!): CommonResult!
delete_topic(slug: String!): CommonResult!
delete_topic_by_id(id: Int!): CommonResult!
merge_topics(merge_input: TopicMergeInput!): CommonResult!
set_topic_parent(topic_id: Int!, parent_id: Int): CommonResult!
# reaction
create_reaction(reaction: ReactionInput!): CommonResult!

View File

@@ -201,6 +201,8 @@ type Topic {
type CommonResult {
error: String
message: String
stats: String
drafts: [Draft]
draft: Draft
slugs: [String]