Reputation: 572
How can I create Domain Specific Gremlin steps in javascript? Like this:
g.V().user(789).knows(15)
Upvotes: 2
Views: 233
Reputation: 46216
Prior to 3.4.2 there really wasn't an official way besides monkey-patching. Since 3.4.2 (set to release this week) changes have been made to the API to make DSL building more of a first class citizen - the approach is discussed in the reference documentation.
Upvotes: 4