-
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)
Using a hash in a where
method will automatically generate a parameterized query. Be careful with strings as illustrated above!
See https://github.com/benjackson/devise-neo4j and use the 2.0.0.alpha.X versions for support with Neo4jrb 3.0. See example application: https://github.com/andreasronge/rails-devise
See https://github.com/neo4jrb/neo4j-will_paginate_redux
Leo Lou's original gem updated for Neo4j.rb 3.0. See https://github.com/neo4jrb/neo4jrb-paperclip
The neo4j gem uses the neo4j-core gem, see https://github.com/andreasronge/neo4j-core See https://github.com/neo4jrb/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