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

Transactions is implemented in neo4j-core. 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

Limitations

  • The query api (example Neo4j::Session.query or Person.where) can only return properties since 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