Skip to content

Connecting to Gremlin-Server

If you are using the default Gremlin Server docker image, you can get the server running with the following commands:

docker pull tinkerpop/gremlin-server:latest
docker run -p 8182:8182 \
tinkerpop/gremlin-server:latest \
conf/gremlin-server-rest-modern.yaml

Then open Graph Explorer and add a new connection with the following settings:

  • Name: Gremlin Server
  • Query Language: Gremlin
  • Public or Proxy Endpoint: https://localhost
  • Using Proxy Server: true
  • Graph Connection URL: http://localhost:8182

Graph Explorer only supports HTTP(S) connections. When connecting to Gremlin-Server, ensure it is configured with a channelizer that supports HTTP(S) (i.e. Channelizer Documentation).

If you have a version of Gremlin Server prior to 3.7, you will need to make the following changes:

  • Enable property returns - Remove “.withStrategies(ReferenceElementStrategy)” from /scripts/generate-modern.groovy so that properties are returned.
  • Enable string IDs - Change gremlin.tinkergraph.vertexIdManager and gremlin.tinkergraph.edgeIdManager in /conf/tinkergraph-empty.properties to support string ids. You can use ANY.
  • Build and run the Docker container as normal.