-
Notifications
You must be signed in to change notification settings - Fork 276
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
Unexpected behavior for multiple 'with' calls separated by 'order' #1642
Comments
Hello @mvitale , following should work fine and it also avoids additional
It generates following cypher, which returns correct results:
|
Thanks! Actually, my example here is contrived and much simpler than the actual query I'm trying to write. In the real one, there's a bunch of matching that happens after the |
@mvitale have you tried the |
@klobuczek I haven't -- I'll give that a shot. Thanks for pointing it out. I'm new to the API. |
@klobuczek That works, thanks. I'll leave the decision to close this issue or leave it open up to you. |
I'm trying to produce a query similar to the following via method chaining. It gets the top five friends, ordered by name, of each user.
I would expect something like this to work:
However, this results in the following invalid cypher query, lumping both
.with
calls into a singleWITH
before theORDER BY
:Is this expected behavior? If so, is there an alternate way to accomplish what I'm trying to do without resorting to
ActiveGraph::Base.query
? Thanks!The text was updated successfully, but these errors were encountered: