Can Neo4J OGM handle loading and saving a sub-graph?

(Jari) #1

I would like to load a sub-graph from Neo4J database and use OGM for automatic mapping into entities. After that I wish to change content of some of the entities, and finally the entities should be mapped back into an updated sub-graph that should be saved into the database.

For example, given the model in e.g. four "Subjects" are given and the sub-graph of interest contains all "Teacher"s "Class"es and "Student"s, which are related via the selected "Subject"s.

Is it possible to load and save sub-graphs with Neo4J and OGM? Pointers to documentation and examples are welcomed.