Replies: 1 comment 4 replies
-
|
Hi @hayamat, thank you for the question. All methods to move a record moves the record and all its descendants. The methods are listed here: https://github.com/fremail/sequelize-nested-set/wiki/Moving-a-record Your Japanese example is too hard for me, sorry. Let's use a simplified one: You want to move 1.1 (and 1.1.1) to be after 1.2, right? So the tree should look this way after update? -- 1 Then you can use await one_one.moveAsNextSiblingOf(one_two);
// or
await one_one.moveAsLastChildOf(one); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about the library sequelize-nested-set
I want to move node contains child nodes
Currently, there is only a way to get the each id of the node to move to the target one by one.
sample image

Beta Was this translation helpful? Give feedback.
All reactions