Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An active model wrapper for the Neo4j Graph Database for Ruby.
Failed to load latest commit information.
bin Rubocop: Style/SpaceInsideBlockBraces, adding back SpaceBeforeBlockPa…
config Revert "Revert premature merge of metadata branch"
docs This is no longer relevant
lib Accidentally committed the second part of this fix to the 589_fix branch
spec stub_active_node_class in active_model_spec.rb
test use Integer instead of Fixnum
.gitignore Starting on using sphinx / rst for readthedocs docs
.overcommit.yml Adding overcommit
.pullreview.yml More alignment of PullReview with rubocop config
.rspec all specs passing, running full tx support spec each time
.rubocop.yml Remove offense count from .rubocop.yml
.rubocop_todo.yml A few other small changes
.travis.yml Use straight up 2.2.0
.yardopts YARD custom templates to generate reStructuredText files for API docu…
CHANGELOG bump version, test for primary key inheritance Add so that there is a link on the new issue page to …
CONTRIBUTORS Release 1.3.1
Gemfile Oops, didn't mean to commit this part
Guardfile Add guard rspec
LICENSE prepare for rubyforge release of gem. Added license file Add extra badge to make it clear that people can submit issues
Rakefile Fix API docs generation
mkdocs.yml Trying to configure mkdocs to see if that fixes RTD
neo4j.gemspec Better to just move railties as a development dependency, I think

Welcome to Neo4j.rb

Code Status

Build Status Coverage Status Code Climate PullReview stats


Next Release In Progress In Master

Post an issue

Get Support

StackOverflow Gitter Twitter Mailing list


Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database. It uses the neo4j-core and active_attr gems.

With this gem you not only do you get a convenient higher level wrapper around Neo4j, but you have access to a powerful high-level query building interface which lets you take advantage of the power of Neo4j like this:

# Break down the top countries where friends' favorite beers come from
  order('count(country) DESC').
  pluck(:country, count: 'count(country)')

For a general overview see our website:

Winner of a 2014 Graphie for "Best Community Contribution" at Neo4j's Graph Connect conference! 2014 Graphie

Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined here and in the announcement message. It will take a little time before all documentation is updated to reflect the new release but unless otherwise noted, all 3.X documentation is totally valid for v4.

Modern (3.x/4.X) Documentation

Legacy (2.x) Documentation


Original Author

Current Maintainers


Always welcome! Please review the guidelines for contributing to this repository.


Notice: There are different licenses for the neo4j-community, neo4j-advanced, and neo4j-enterprise jar gems. Only the neo4j-community gem is required by default.

Something went wrong with that request. Please try again.