-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
where_or
for Query and QueryProxy
#947
Comments
👍 |
Took off ;) |
Does it mean that currently is not possible to use |
It's certainly possible, you just need to give a string. Something like: person.as(:p).where("p.age = 20 OR p.age = 30") |
Of course with a string can write Cypher. I am trying to write a Neo4j adapter for cancancan (used by rails_admin) so I need to build the query dynamically and I am using ActiveModel methods. Maybe I will try with cypher string ... |
First I'm a bit confused when you say If you haven't seen it already, you should look into the Also, I've worked on and off to get a neo4j version of rails_admin working here: It works more or less, I've been trying to get the specs to all pass now. Great to hear that you're helping to support Neo4j with cancancan! |
Yes, sorry I mean I tried your fork of rails_admin you mentioned on railsadminteam/rails_admin#1377 and more or less it works for me but I have to disable authorizations (basically comment out the Of course if I can get something working I will submit PR and let you know. |
I am reading the What I mean i something similar to this Rails PR where one can write Article.where(published: true).or(Article.where(secret: true)) or using the Article.where(published: true).where_or(secret: true) and get something like MATCH (n:Article) WHERE n.published = true OR n.secret = true Do you think can it be (easily) done in the EDIT: fixed some typo |
I don't think it will be easily done, unfortunately. I've generated Cyhper |
No description provided.
The text was updated successfully, but these errors were encountered: