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

RedisGraph Map Projections #80

Open
alexstaroselsky opened this issue Aug 16, 2021 · 0 comments
Open

RedisGraph Map Projections #80

alexstaroselsky opened this issue Aug 16, 2021 · 0 comments

Comments

@alexstaroselsky
Copy link

When dealing with map projections, what would be the proper way to extract the keys/values from the iterator? Given query:

MATCH (n) RETURN n {.name, .age} AS projection

What would be the proper path for extracting the object(s) containing name and age projections? Logging out the value of res.next() for that query outputs the following in the console:

Record {
  _header: [ 'n {.name, .age}' ],
  _values: [ { name: 'foo', age: 42 } ]
}

How would you get the value(s), being an array of objects equal to [ { name: 'foo', age: 42 } ]?

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