Skip to content

edge hop should return edge list #93

@khoale88

Description

@khoale88

To better follow Neo4j cypher specs, grand-cypher can check and return edge hops as following.

edge hop value return type description error on filter or return
r*0 [] empty list to return r Type error: Cannot access property 'weight' on a list
r*1 {} attributes of the edge or value of a single attribute
r*2 [{}, {}] attributes of the edge Type error: Cannot access property 'weight' on a list
r*0..2 [], {}, [{}] depending on what are the real matches of r depending on what are the real matches of r

This will make more sense to implement operator like any, all, collect on edge.

This might lead to some backward incompatible.

Hi @j6k4m8 @davidmezzetti what do you think?

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