Ralf Stein
Ralf Stein

Reputation: 209

ArangoDB traverse getting the vertex documents

How can I traverse a graph getting the complete vertex related documents?

I don't want only the vertex related IDs from a start ID, but also the complete document (all fields) from all IDs related with the start node ID.

Today I get the vertex and query all the related vertex one by one, because I need all document fields from the related vertexes.

Thanks. Ralf

Upvotes: 0

Views: 125

Answers (1)

dothebart
dothebart

Reputation: 6067

Update: Using the modern AQL graph traversal, the full vertex documents are returned by default.


You're able to retrieve the full vertices documents by specifying the includeVertices option (see docs about graph functions) for more details)

Upvotes: 1

Related Questions