Skip to content

Remove all Node Descendants when remove Node parent in MongoDB #4

@napoleon211092

Description

@napoleon211092

I have read your example. It's very helpful for me.
In my practices, I want to remove Node parent means delete all Node Descendants.

For example:

When I remove "Cell_Phones_and_Accessories" node, it must remove Cell_Phones_and_Smartphones, Headset, Battery, Cables_And_Adapter, Nokia, Samsung, HTC, Apple and Vyacheslav

I am referring to the Tree Structure with Parent Reference.
Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions