Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-22-2021 07:45 AM
Hi All,
I'm using Neo4j OGM to store data. In my pojo I have two fields named createDate and modifiedDate.
When I insert a record createDate and modified Date are stored. When I try to update the record I have to modify the modifiedDate field alone and createDate should remain as such. But the value of createDate is set to null while updating. Due to this on update createDate field will be removed from record. So is there any way to not update the fields which does not have value in pojo?
Thanks.
10-27-2021 06:38 AM
As answered here Discord , the property need to be set.
If Neo4j-OGM should persist a null
value, it will remove the property from the node (set it to null
in Neo4j definition).
The only ways to make it not delete the property is either loading it or using a custom Cypher query.
All the sessions of the conference are now available online