What does Reversed() do as xpath constraint?

1
Hi everyone, I was looking for an explanation or definition of reversed() in the documentation but couldn't find it unfortunately. Could anyone tell me what reversed does or if an example is needed what it would do in: [ Modulename.association[reversed()] = $parameter] Would be much appreciated!
asked
1 answers
5

It is used when you have a Selfreference (an association that points to its own entity), to specifify whether you want to travel down the association (retrieve the children) or travel up (reversed) to retrieve the parent.

There are several forum posts about it, for example see https://forum.mendix.com/link/questions/2882

and a how to can be found here: https://docs.mendix.com/howtogeneral/tips/querying-over-self-references

answered