Added a recipe appendix entry
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0938ebdc Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0938ebdc Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0938ebdc Branch: refs/heads/TINKERPOP-1602 Commit: 0938ebdce4b6d8512674503680c660eea9870e9e Parents: d7ecfc0 Author: Stephen Mallette <sp...@genoprime.com> Authored: Tue Jan 10 10:45:56 2017 -0500 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Tue Jan 10 10:45:56 2017 -0500 ---------------------------------------------------------------------- docs/src/recipes/appendix.asciidoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/0938ebdc/docs/src/recipes/appendix.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/recipes/appendix.asciidoc b/docs/src/recipes/appendix.asciidoc index 63ec447..15d7340 100644 --- a/docs/src/recipes/appendix.asciidoc +++ b/docs/src/recipes/appendix.asciidoc @@ -109,4 +109,19 @@ g.V().as("a"). unfold(). filter(select(values).is(gt(1))). select(keys) ----- \ No newline at end of file +---- + +[[appendix-e]] +_In the "crew" graph, find vertices that match on a complete set of multi-properties._ + +[gremlin-groovy,theCrew] +---- +places = ["centreville","dulles"];[] // will not match as "purcellville" is missing +g.V().not(has("location", without(places))). + where(values("location").is(within(places)).count().is(places.size())). + valueMap() +places = ["centreville","dulles","purcellville"];[] +g.V().not(has("location", without(places))). + where(values("location").is(within(places)).count().is(places.size())). + valueMap() +----