Skip to content

RedisGraph Map Projections #80

Open
@alexstaroselsky

Description

@alexstaroselsky

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 } ]?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions