@@ -52,7 +52,38 @@ implementation 'com.arangodb:arangodb-tinkerpop-provider:x.y.z'
5252
5353### Gremlin Console
5454
55- TODO (DE-1062)
55+ To use the provider in the Gremlin Console, first you need to install it:
56+
57+ ``` text
58+ :install com.arangodb arangodb-tinkerpop-provider 3.0.0
59+ ```
60+
61+ Then, after restarting the console, you can use it:
62+
63+ ``` text
64+ gremlin> conf = [
65+ ......1> "gremlin.graph":"com.arangodb.tinkerpop.gremlin.structure.ArangoDBGraph",
66+ ......2> "gremlin.arangodb.conf.graph.enableDataDefinition":"true",
67+ ......3> "gremlin.arangodb.conf.driver.hosts":"172.28.0.1:8529",
68+ ......4> "gremlin.arangodb.conf.driver.password":"test",
69+ ......5> ]
70+ ==>gremlin.graph=com.arangodb.tinkerpop.gremlin.structure.ArangoDBGraph
71+ ==>gremlin.arangodb.conf.graph.enableDataDefinition=true
72+ ==>gremlin.arangodb.conf.driver.hosts=172.28.0.1:8529
73+ ==>gremlin.arangodb.conf.driver.password=test
74+
75+ gremlin> graph = GraphFactory.open(conf)
76+ ==>arangodbgraph[ArangoDBGraphConfig{dbName='_system', graphName='tinkerpop', graphType=SIMPLE, vertices=[tinkerpop_vertex], edges=[tinkerpop_edge], edgeDefinitions=[tinkerpop_edge:[tinkerpop_vertex]->[tinkerpop_vertex]], orphanCollections=[], driverConfig=ArangoConfigPropertiesImpl{prefix='', properties={password=test, hosts=172.28.0.1:8529}}}]
77+
78+ gremlin> g = graph.traversal()
79+ ==>graphtraversalsource[arangodbgraph[ArangoDBGraphConfig{dbName='_system', graphName='tinkerpop', graphType=SIMPLE, vertices=[tinkerpop_vertex], edges=[tinkerpop_edge], edgeDefinitions=[tinkerpop_edge:[tinkerpop_vertex]->[tinkerpop_vertex]], orphanCollections=[], driverConfig=ArangoConfigPropertiesImpl{prefix='', properties={password=test, hosts=172.28.0.1:8529}}}], standard]
80+
81+ gremlin> g.addV("person").property("name", "marko")
82+ ==>v[4586117]
83+
84+ gremlin> g.V().hasLabel("person").values("name")
85+ ==>marko
86+ ```
5687
5788### Server Plugin
5889
0 commit comments