This is going to sound like a bit daft, but is there any way to do custom mapping in a Neo4jRepository after the OGM finishes its work? What I'm trying to achieve is to include a nodes "parent"
uuid in a tree-like graph, but not actually include that parent in the mapped results. (A new requirement I hadn't anticipated, and a lot of repositories to affect.)
For instance, if I have (book)-[on]->(shelf), and someone requests the book, I want to return the book but also inject the shelf's
uuid as a property on the returned book.
I came across some esoteric references to
Neo4jTemplate, but couldn't find much even about that. I am just hoping to avoid rebuilding everything just to achieve this seemingly minor change. I hold little hope, but any hints are appreciated.
I guess another approach would be to build an extension function to decorate a given node before it gets back to the OGM.