Repository: tinkerpop Updated Branches: refs/heads/master e1e15fa10 -> dbbe4482f
Added warning for postfixes in gremlin-javascript CTR Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/9986493b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/9986493b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/9986493b Branch: refs/heads/master Commit: 9986493baed59c964673460324a5abcd2fbb2e98 Parents: ecd944e Author: Stephen Mallette <sp...@genoprime.com> Authored: Wed Jul 25 07:43:28 2018 -0400 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Wed Jul 25 07:43:28 2018 -0400 ---------------------------------------------------------------------- docs/src/reference/gremlin-variants.asciidoc | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/9986493b/docs/src/reference/gremlin-variants.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc index 7a85ab1..04090b5 100644 --- a/docs/src/reference/gremlin-variants.asciidoc +++ b/docs/src/reference/gremlin-variants.asciidoc @@ -491,6 +491,9 @@ traversal source. Since Gremlin-JavaScript currently doesn't support lambda expressions, all traversals can be translated to Gremlin-Java on the remote location (e.g. Gremlin Server). +WARNING: In Javascript, `from` and `in` are reserved words. Gremlin-Javascript simply postfixes `_` to the end of +these terms for their use with graph traversal. For instance: `g.V().in_().out()` + IMPORTANT: Gremlin-JavaScriptâs `Traversal` base class supports the standard Gremlin methods such as `next()` and `toList()` Such "terminal" methods trigger the evaluation of the traversal.