From 93acd2df65adde1f3fbb76787be183b44bf6bd3e Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Tue, 3 Feb 2015 19:06:00 -0500 Subject: [PATCH 1/3] .md missing --- docs/Overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Overview.md b/docs/Overview.md index 0eeb61f..852a4da 100644 --- a/docs/Overview.md +++ b/docs/Overview.md @@ -12,7 +12,7 @@ If you prefer to build from source, see the documentation on the wiki at [How to Now that Cayley is built, let's create our database. `init` is the subcommand to set up a database and the right indices. -You can set up a full [configuration file](/docs/Configuration) if you'd prefer, but it will also work from the command line. +You can set up a full [configuration file](/docs/Configuration.md) if you'd prefer, but it will also work from the command line. Examples for each backend: From b9cf3c02ca22ab58524eef72f3f3e267523fbfd3 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Tue, 3 Feb 2015 19:09:47 -0500 Subject: [PATCH 2/3] fix #199 by mentioning query objects --- docs/GremlinAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GremlinAPI.md b/docs/GremlinAPI.md index e3b2ae1..e01d352 100644 --- a/docs/GremlinAPI.md +++ b/docs/GremlinAPI.md @@ -45,7 +45,7 @@ Adds data programatically to the JSON result list. Can be any JSON type. ## Path objects -Both `.Morphism()` and `.Vertex()` create path objects, which provide the following traversal methods. +Both `.Morphism()` and `.Vertex()` create path objects, which provide the following traversal methods. Note that `.Vertex()` returns a query object, which is a subclass of path object. For these examples, suppose we have the following graph: ``` From a65472e99b06a842543e2753884c50fe2860786c Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Tue, 3 Feb 2015 19:12:42 -0500 Subject: [PATCH 3/3] subsuming fix for #161 --- docs/GremlinAPI.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/GremlinAPI.md b/docs/GremlinAPI.md index e01d352..4dce9ed 100644 --- a/docs/GremlinAPI.md +++ b/docs/GremlinAPI.md @@ -362,10 +362,10 @@ Returns: Array Executes a query and returns the results at the end of the query path. Example: -``javascript +```javascript // fooNames contains an Array of names for foo. var fooNames = g.V("foo").Out("name").ToArray() -`` +``` ####**`query.ToValue()`** @@ -383,12 +383,12 @@ Returns: Array of string-to-string objects As `.ToArray` above, but instead of a list of top-level strings, returns an Array of tag-to-string dictionaries, much as `.All` would, except inside the Javascript environment. Example: -``javascript +```javascript // fooNames contains an Array of names for foo. var fooTags = g.V("foo").Tag("foo_value").Out("name").ToArray() // fooValue should be the string "foo" var fooValue = fooTags[0]["foo_value"] -`` +``` ####**`query.TagValue()`**