Lakshitha Herath
Lakshitha Herath

Reputation: 638

Spring Data neo4j 4 - Getting org.neo4j.ogm.response.model.NodeModel as a result

Is there a way to get org.neo4j.ogm.response.model.NodeModel as results after running a particular query ?

Reason for this is I'm having dynamic properties of my node, which cannot be specify in POJO class.While I'm debugging through the SDN 4.1.1 code i've seen that all properties are there in the NodeModel under map called "properties".So if I can get that map after running a query, thats pretty much solves my problem

Upvotes: 0

Views: 317

Answers (1)

Luanne
Luanne

Reputation: 19373

NodeModel is used only internally and I would advise you not to rely on it not changing in future releases. Dynamic properties can be modelled currently as a Map with a custom converter that converts the map to/from a String.

Upvotes: 1

Related Questions