Skip to content

Question on 'where' clause with incoming edges #16

@catchvoid

Description

@catchvoid

Hi,

Thanks for making greskell available! I really enjoy using the DSL, and I appreciate the addition of Data.Greskell.GTraversal.Gen—it’s made working with it much more pleasant.

I’m currently struggling with replicating a where condition to test if a vertex has an incoming edge with a specific label. Here's the query I’m trying to translate:

g.V().has("person", "person_id", personId)
.out("lives")
.in("within")
.where(inE("about"))
.group()...

The full query can be found in this example:
Graph Databases in Action – Chapter 8 Example

What’s the best way to write this in greskell?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions