Skip to content
Discussion options

You must be logged in to vote

Your type as defined expects a single edge:

ArcadeEdge<Site> // contains a single edge

the in() operator returns all incoming vertices.
Stated another way: it starts at the vertex targeted in the query, then follows each incoming edge to collect the connected vertices.

The type of site in Thing should be:

ArcadeVertex<Site>[] // a list of all vertices with in-edges to the target vertex

(You also might want to look at: inE(), which returns all incoming Edges for the Vertex targeted in the query.)

Also consider your query does not return ArcadeVertex[] at the top level:
When you query SELECT * FROM Equipment, you’d get vertices.

When you SELECT property, in(), you’re no longer returning jus…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by apttap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants