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