-
Notifications
You must be signed in to change notification settings - Fork 276
Neo4j.rb v3 Tips and Related Gems
Always use params
with queries to protect yourself from Cypher injection. It also allows the server to cache execution paths, which will lead to better performance.
Student.lessons(:l, :r).where("r.grade > '{grade}'").params(grade: 89)
Install a Neo4j test server
rake neo4j:install[community-2.1.3,test]
Configure it using a different server port e.g. 7475
rake neo4j:config[test,7475]
Edit the test configuration `config/environments/test'
config.neo4j.session_type = :server_db
config.neo4j.session_path = 'http://localhost:7475'
See example: Rails Blog Example
See https://github.com/benjackson/devise-neo4j. Use the 2.0.0.alpha.X versions. See example application: https://github.com/andreasronge/rails-devise
See https://github.com/subvertallchris/neo4j-will_paginate
Leo Lou's original gem updated for Neo4j.rb 3.0. See https://github.com/subvertallchris/neo4jrb-paperclip
See Rails 4 example: https://github.com/andreasronge/neo4j/tree/3.0/example/blog
The neo4j gem uses the neo4j-core gem, see https://github.com/andreasronge/neo4j-core See https://github.com/andreasronge/neo4j-core/tree/3.0
WARNING: Much of the information in this wiki is out of date. We are in the process of moving things to readthedocs
- Project Introduction
- Neo4j::ActiveNode
- Neo4j::ActiveRel
- Search and Scope
- Validation, Uniqueness, and Case Sensitivity
- Indexing VS Legacy Indexing
- Optimized Methods
- Inheritance
- Core: Nodes & Rels
- Introduction
- Persistence
- Find : Lucene
- Relationships
- Third Party Gems & extensions
- Scaffolding & Generators
- HA Cluster