Skip to content

Neo4j.rb v3 Tips and Related Gems

Andreas Ronge edited this page Aug 27, 2014 · 8 revisions

Preventing Cypher Injection

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)

Related Gems

Screen Casts

Neo4j with devise

See https://github.com/benjackson/devise-neo4j. Use the 2.0.0.alpha.X versions. See example application: https://github.com/andreasronge/rails-devise

neo4j-will_paginate

See https://github.com/subvertallchris/neo4j-will_paginate

neo4jrb-paperclip

Leo Lou's original gem updated for Neo4j.rb 3.0. See https://github.com/subvertallchris/neo4jrb-paperclip

Rails Example

See Rails 4 example: https://github.com/andreasronge/neo4j/tree/3.0/example/blog

Neo4j Core

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

Clone this wiki locally