subsuming fix for #161

This commit is contained in:
Barak Michener 2015-02-03 19:12:42 -05:00
parent b9cf3c02ca
commit a65472e99b

View file

@ -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()`**