Skip to content
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

Strings vs Symbols in order methods #908

Open
cheerfulstoic opened this issue Aug 11, 2015 · 0 comments
Open

Strings vs Symbols in order methods #908

cheerfulstoic opened this issue Aug 11, 2015 · 0 comments

Comments

@cheerfulstoic
Copy link
Contributor

This came up here:

http://stackoverflow.com/questions/31946711/neo4j-rb-cant-use-order-by/31947456#31947456

Basically, because of the Query class, in an order method a String is handled differently than a Symbol.

First thing is that this should be documented

Secondly, we could maybe be smarter about this. If the string matches something like /^[\w_]+$/ we can assume it's a property that they're specifying. Also maybe this rule should be from ActiveNode/QueryProxy and not in Query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant