graph icon indicating copy to clipboard operation
graph copied to clipboard

Add example of startingWith() used with where().by()

Open krlawrence opened this issue 4 years ago • 0 comments

Add an example where a value found in one vertex is used to do startingWith searches across other vertices.

gremlin> g.addV('key').property('prefix','Dal')
==>v[60873]
gremlin> g.V().hasLabel('key').as('a').V().hasLabel('airport').where(startingWith('a')).by('city').by('prefix').
values('city')
==>Dallas
==>Dallas
==>Dalaman
==>Dalian
==>Dalcahue
==>Dalat
==>Dalanzadgad     

krlawrence avatar Apr 22 '21 15:04 krlawrence