I recommend reading this relevant section of the OGM docs: https://neo4j.com/docs/ogm-manual/current/reference/#reference:session:persisting-entities
Short version: I don't think there's a way to exactly accomplish what you want, but the OGM session ...