You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/06/12 22:56:53 UTC

[3/3] incubator-tinkerpop git commit: fixed a within() 'bug' -- don't need to make a list as you can provide a var args.

fixed a within() 'bug' -- don't need to make a list as you can provide a var args.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/92e628b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/92e628b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/92e628b4

Branch: refs/heads/master
Commit: 92e628b4ea7e18e291170d17434b79a86ae51035
Parents: 5980a03
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Fri Jun 12 14:56:44 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Fri Jun 12 14:56:44 2015 -0600

----------------------------------------------------------------------
 docs/src/the-traversal.asciidoc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/92e628b4/docs/src/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc
index d204781..42bab80 100644
--- a/docs/src/the-traversal.asciidoc
+++ b/docs/src/the-traversal.asciidoc
@@ -594,14 +594,16 @@ 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>
+g.V().has('name',within('josh','marko')).valueMap() <3>
+g.V().has('name',without('josh','marko')).valueMap() <4>
+g.V().has('name',not(within('josh','marko'))).valueMap() <5>
 ----
 
 <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.
+<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.
+<5> Same as the prior example save using `not` on `within` to yield `without`.
 
 TinkerPop does not support a regular expression predicate, although specific graph databases that leverage TinkerPop may
 provide a partial match extension.