It is, I would like to find a node inside my document (for instance node with id=4), independently of the level, only knowing the id.
I am not really sure if it is possible in CB, but It would be fine if someone solve my doubt
There should be a way to do with N1QL, but I’m not an expert in that area so I don’t know off the top of my head exactly how
However, you’re data structure looks a bit curious to me - it appears you’re trying to represent an arbitrary tree, but not with a simple nested dictionary. Perhaps you could restructure to directly represent the tree using the JSON document structure? - for example: