Skip to content
Andreas Ronge edited this page Aug 14, 2014 · 11 revisions

All operations are automatically wrapped in transactions. Example of how to rollback a transaction:

Neo4j::Transaction.run do |tx|
   Neo4j::Node.create
   Person.create
   tx.fail
end

API

Neo4j::Transaction is implemented in neo4j-core.

Limitations

  • The query api (example Neo4j::Session.query or Person.where) can only return properties because limitations in the Neo4j Server Rest API (this works in the embedded db).
  • Transactions are thread confined and can be nested as "flat nested transactions"
Clone this wiki locally