The provided examples need a gremlin-server as counterpart. The counterpart can either be a local one, e.g. gremlin-server, or a CosmosDB running on Azure.
Against Local Gremlin-Server
# start a local gremlin server
cd ..
make infra.up
# execute the example
go run ./examples/local
Against CosmosDB on Azure
Prerequisites
Obtain the host/ endpoint of the CosmosDB
To this end one has to login into the Azure web console and navigate to the Azure CosmosDB panel.
Select the db you want to connect to, go to the overview tab and there copy the URL of the Gremlin Endpoint
It should look like this wss://xyz-my-db-abc.gremlin.cosmos.azure.com:443/
Obtain the username/ database name
In our case the username is composed of the database name and the name of the collection one want's to use
Schema: /dbs/<db-name>/colls/<name of the collection>