Azure Cosmos DB databases can be configured to use a Gremlin API. Via this feature, Cosmos DB aims to provide a compatible server interface for applications using the Tinkerpop Gremlin graph traversal language. Not all Gremlin features are supported by Cosmos DB's implementation.
Questions tagged [azure-cosmosdb-gremlinapi]
283 questions
0
votes
1 answer
Cosmos graph gremlin nodejs - Unhandled Promise Rejection
I'm sending query to Azure cosmos graph db using gremlin node package. For correct query it returns the respponse but for incorrect query it crashed with error - unhandled promise rejection. I have try catch in place but it still doesn't come in…

iAviator
- 1,310
- 13
- 31
0
votes
1 answer
How can I customize the look of vertices in Azure CosmosDB?
I'm currently working with CosmosDB and I want to personalize the look of my vertices. In the Data Explorer there a menu in the upper toolbar called "Style". The uppermost dropdown called "Show vertex (node) as" dropdown does work, it re-labels the…

szeb
- 326
- 3
- 20
0
votes
1 answer
Does Tinkerpop GroovyTranslator protect against Gremlin script injection attacks?
I understand that direct gremlin scripts are susceptible to Injection attacks and parametrizing them is the best option.
My question is if creating a GraphTraversal object and running it through GroovyTranslator to arrive at the Gremlin script also…

ab m
- 422
- 3
- 17
0
votes
1 answer
Multiple Gremlin Clusters in a single Java application instance
In a scenario when one java application instance can talk to multiple Gremlin servers (say multiple graph instances in CosmosDB). What is the recommendation for creating and caching Gremlin Clients in such a case. Looks like on my mac maximum number…

ab m
- 422
- 3
- 17
0
votes
1 answer
How to query Gremlin when multiple connections between nodes are present
I'm trying to build a suggestion engine using Gremlin but I'm having a hard time trying to understand how to create a query when multiple nodes are connected by different intermediate nodes.
Playground:
https://gremlify.com/alxrvpfnlo9/2
Graph:
In…

Mariano Soto
- 136
- 10
0
votes
1 answer
Gremlin Cosmos DB - How to structure events from a FPS game?
So, I'm completely new to graph and gremlin API so I hope someone here can point me in the right direction.
I`m planning to create a overview map of all events during a FPS game. This means I have a list of players, rounds, and all events that have…

ffffff01
- 5,068
- 11
- 52
- 61
0
votes
1 answer
Gremlin DFS/BFS Search while avoiding Loops
In Gremlin I am trying to get find all the connected nodes in my graph - Using either BFS or DFS I am not worried about the traversal method as I will have a list of edges that will show the connections between the nodes where the output would be…

Aditya Rao
- 11
- 2
- 4
0
votes
1 answer
How to return only the id of a vertex in Cosmos Graph
I am importing data from SQL Server to Cosmos Gremlin Graph. During the process, I need to search for a vertex by its old id, as the new id is needed to create an edge. I only want the id not all the other properties.

Chris Parker
- 206
- 1
- 9
0
votes
1 answer
How to use CosmosDB.BulkExecutor.Graph.GraphBulkExecutor.BulkDeleteAsync?
I am trying to use BulkDelete function (for Cosmos DB graph database) that takes a string query and deletes all results, in my .NET C# application. Documentation:…

Apoorva Agrawal
- 1
- 1
0
votes
1 answer
Enable Azure cosmos gremlin request logging in application insight
I have azure app service. Requests against other Azure services are traced (appear as 'dependencies') in AppInsights. Requests against the Gremlin API are not appearing in AppInsights though, how to achieve it?

Nilesh Sawant
- 1,406
- 14
- 8
0
votes
0 answers
Gremlin traversal referencing previous edges
I have a fairly simple graph, with the caveat that all edges are marked with 'to' and 'from' dates stored as timestamps.
I'm trying to write a traversal that will only follow edges that overlap with the first traversed edge's To and From dates.
Note…

bech
- 627
- 5
- 22
0
votes
1 answer
Partition key of the vertices connected through the edge is not available when querying the Cosmos gremlin Graph
Gremlin API in Azure Cosmos DB allows us to create vertices in different partitions(p1, p2) with same id(v1). When I created a self edge(e1) for a vertex(v1) in one partition(p1), two edges are getting created for vertices in both the partitions(v1…

Ranjith Eswaran
- 333
- 2
- 12
0
votes
1 answer
python integration with azure gremlin not working
I am trying to mimic as mentioned in GIT.
I almost commented everything, and just trying to run simply
g.V().count()
my connection details are correct, and matched to documentation...
I am getting following error.
Traceback (most recent call…

Rakesh Prasad
- 602
- 1
- 13
- 32
0
votes
1 answer
How to do bulk query operations on Cosmos DB using gremlin API
We want to perform bulk (millions of low-cost) query/read operations on a graph that we have in Cosmos DB using the Gremlin API in .NET C#. What is the best way to do so?
We know about BulkExecutor Library which only supports Bulk Import and Bulk…

Apoorva Agrawal
- 1
- 1
0
votes
1 answer
Where do I set a partitionKey in CosmosDB deployed as a Gremlin instance?
I have several Vertices and Edges to create and think I might have "hot" sections of data. (as in Azure Table Storage)
Are my scalability and other knowledge from Azure Tables applicable to Gremlin on Azure? If so, how?
Namely, I want to have…

TLDR
- 1,198
- 1
- 12
- 31