Hello,
I am considering a repository structure where there are two document types: let's call one "Base" and the other "Enhancements". I would like to use the Relations functionality of Nuxeo to indicated that a given "Enhancements" requires a given "Base" using the standard Dublin Core relation included with the software.
This is working fine, and I am able to find the Base documents from the Enhancements documents that require them programmatically using the Relations.GetRelations operation. However, this only traverses one edge of the given relation. Is there already a way in Nuxeo to retrieve both documents "EnhancementsB" and "Base" in the following dependency chain, if I am querying the "EnhancementsA" document?
EnhancementsA ---requires--> EnhancementsB ---requires--> Base
Obviously I could take the output I have and query the document it returns, but my goal is to reduce the number of serial web requests needed to acquire this information, since the ultimate request is coming from a mobile client. I could also define a server-side operation to go through a fixed number of such relation edges, but maybe there is a better way?
Thanks for any help.