-
Notifications
You must be signed in to change notification settings - Fork 85
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
How to "zip" two lists together? #90
Labels
Comments
I mark it as bug or enhancement. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say I have a doc like this:
I want to find out the age of a person whose name is
Joe
. So essentially I need to zip two lists<NAMES>
and<AGES>
together, based onposition()
. I can't figure out a way to write this query:Basically I want to get an
<age>
node whoseposition()
equals theposition()
of a<name>
node whose value isJoe
. I have a strong assumption and guarantee that the numbers of elements in the<NAMES>
and<AGES>
lists are the same, so no need to worry about that.The query doesn't work, the error basically says:
has an invalid token.
Any insight/idea how to achieve this? Would really like to avoid doing the zip processing in code.
Thanks!!
The text was updated successfully, but these errors were encountered: