Augusto Will
Augusto Will

Reputation: 572

How to create a Gremlin DSL in javascript?

How can I create Domain Specific Gremlin steps in javascript? Like this:

g.V().user(789).knows(15)

Upvotes: 2

Views: 233

Answers (1)

stephen mallette
stephen mallette

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

Related Questions