Hi,
I was following the example in the Readme in IRB, and am coming across the following error whenever I try and save, count or find.
Save and find still work - it persists the record or finds it as expected, but it throws out this error first. This is true under REE, MRI 1.9.2p290 and JRuby 1.6.5 - if that helps.
Architect4r::InvalidCypherQuery: start root = node(0) match root-[r:model_root]->x where r.architect4r_type and r.architect4r_type = 'Instrument' return x
from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/core/cypher_methods.rb:18:in `execute_cypher'
from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/core/cypher_methods.rb:36:in `cypher_query'
from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/model/node.rb:29:in `model_root'
from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/model/queries.rb:13:in `count'
from (irb):28
from /home/john/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `'
I'd offer to bugfix, but I don't have a clue about Cypher!
Hi,
I was following the example in the Readme in IRB, and am coming across the following error whenever I try and save, count or find.
Save and find still work - it persists the record or finds it as expected, but it throws out this error first. This is true under REE, MRI 1.9.2p290 and JRuby 1.6.5 - if that helps.
Architect4r::InvalidCypherQuery: start root = node(0) match root-[r:model_root]->x where r.architect4r_type and r.architect4r_type = 'Instrument' return x from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/core/cypher_methods.rb:18:in `execute_cypher' from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/core/cypher_methods.rb:36:in `cypher_query' from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/model/node.rb:29:in `model_root' from /home/john/.rvm/gems/ruby-1.9.2-p290/gems/architect4r-0.3.4.2/lib/architect4r/model/queries.rb:13:in `count' from (irb):28 from /home/john/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `'I'd offer to bugfix, but I don't have a clue about Cypher!