How to query a graph of documents of different types at once in Marklogic?
问题 Background I'm using NoSql database supporting graphs for the first time. It is a huge medical application handling thousands of patients. It is a greenfield project and we as a team are struggling with our persistence layer. We don't know how relationships should be represented and if we should use Triples to handle queries involving huge amount of data. We are using Java API . Data structure Imagine that there are 3 types of JSON documents in our Marklogic database: Patient, Event, File