Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path update #46

Open
mfazeliLNC opened this issue Mar 7, 2023 · 3 comments
Open

Path update #46

mfazeliLNC opened this issue Mar 7, 2023 · 3 comments
Labels

Comments

@mfazeliLNC
Copy link

mfazeliLNC commented Mar 7, 2023

Hi, thanks for the nice plugin, I am completely new to mongo/mongoose and therefore happy to have your package. I would like to add new parents to existing nodes and also rearrange/add nodes to the tree. Is the updating of the path supported when I delete a node or add a parent? Currently I tried to add/delete node but the path does not update like stated in the docu :/ Maybe I am doing something wrong?
Thanks!

image

@vikpe
Copy link
Owner

vikpe commented Mar 7, 2023

Please provide some code for me to understand what you are trying to do.

@vikpe vikpe added the question label Mar 7, 2023
@ilterugur
Copy link

@vikpe This plugin doesn't work with the "findOneAndUpdate" hook and I think this is the problem he is facing (just like I am). I am using nestjs-query and it doesn't trigger save middleware but triggers findOneAndUpdate middleware. How can we make it work also with the "findOneAndUpdate"?

@vikpe
Copy link
Owner

vikpe commented Mar 17, 2023

@ilterugur I would have to update the plugin to support findOneAndUpdate; I'll create a separate issue, see #49 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants