Skip to content

Commit

Permalink
Updated Gremlin Client example
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Nov 6, 2023
1 parent a9ff707 commit 4b8811b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/asciidoc/api/gremlin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,19 @@ docker run -d --name arcadeDb -p 2424:2424 -p 2480:2480 -p 8182:8182 \

NOTE: In case you're running ArcadeDB with Docker, open the port `8182` and use `-e` to pass the settings

To connect to a remote GremlinServer:
To connect to a remote GremlinServer use this:

```java
GraphTraversalSource g = traversal().withRemote(DriverRemoteConnection.using("localhost",8182,"g"));
var cluster = Cluster.build()
.port(8182)
.addContactPoint("localhost")
.credentials("root", "password")
.create();
var connection = DriverRemoteConnection.using(cluster);
var g = new GraphTraversalSource(connection);
```


For more information about Gremlin:

- http://tinkerpop.apache.org/gremlin.html[Introduction to Gremlin]
Expand Down

0 comments on commit 4b8811b

Please sign in to comment.