Azure Graph DB and Gremlin API

120 Views Asked by At

I am creating an elementary graph in Azure Cosmos DB and Graph API using Gremlin.

A fundamental use case is mapping a Node to multiple relationship vertices. For example,

Person A -> hasDriver -> DriverName
Person A -> hasButler -> ButlerName
Person A -> hasChef -> ChefName
......

How do I write a query that can traverse all "relationships" for Person A and their associated details?

I want to find all the role names that cater to Person A - without having to specify the relationships explicitly. Is that possible?

0

There are 0 best solutions below