From e6c73cd0a087252e1895b4921f2794eeecf2bf8e Mon Sep 17 00:00:00 2001 From: David Robinson Date: Fri, 12 Jun 2015 13:22:31 -0400 Subject: [PATCH] add additional has examples --- docs/src/the-traversal.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc index 7f5793d59d9..d2047819a7f 100644 --- a/docs/src/the-traversal.asciidoc +++ b/docs/src/the-traversal.asciidoc @@ -594,10 +594,17 @@ g.V().hasLabel('person').out().has('name',within('vadas','josh')). outE().hasLabel('created') g.V().has('age',inside(20,30)).values('age') <1> g.V().has('age',outside(20,30)).values('age') <2> +g.V().has('name',within(['josh','marko'])).valueMap() <3> +g.V().has('name',without(['josh','marko'])).valueMap() <4> ---- <1> Find all vertices whose ages are between 20 (inclusive) and 30 (exclusive). <2> Find all vertices whose ages are not between 20 (inclusive) and 30 (exclusive). +<3> Find all vertices whose names are exact matches to any names in the the collection [josh,marko], display all the key,value pairs for those verticies. +<4> Find all vertices whose names are not in the collection [josh,marko], display all the key,value pairs for those vertices. + +TinkerPop does not support a regular expression predicate, although specific graph databases that leverage TinkerPop may +provide a partial match extension. [[inject-step]] Inject Step