Uttkarsh Jain
Uttkarsh Jain

Reputation: 228

Datastax Graph: Gremlin query to get all the vertices which does not have a specific edge

Gremlin query to return all the vertices which does not have a specific outgoing edge. we have two vertex types which are connected by an edge name" belongs within" now i need to get a vertices which does not have an edge with name "belongswithin"

Upvotes: 1

Views: 48

Answers (1)

Uttkarsh Jain
Uttkarsh Jain

Reputation: 228

g.V().hasLabel("suburb").filter(__.not(outE("belongswithin"))).count()

Upvotes: 2

Related Questions