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
2
votes
0 answers
Azure CosmosDB Emulator Gremlin Enabled on Docker
I have been battling this for a while now.
Scenario
We are using Cosmos SQL API and Cosmos Graph (Gremlin) in our project. For a long time we have been forced to use Azure resources when developing for the graph databases.
I whish to get rid of this…

Dan Johansson
- 21
- 1
2
votes
1 answer
Gremlin query combine vertices with unrelated vertices CosmosDB
I would like to get several vertices e.G. with the label "user" combined with vertices, they are not related to, yet e.G. with the label "movie".
I know, that the strength of Gremlin is traversing the vertex, and combining objects that are not…

Manuel Hummler
- 45
- 5
2
votes
0 answers
Choose Step Causes Data Mismatch [GREMLIN API]
The Image above is the structure of a part of my graph database.
What I'm trying to achieve here is that I'm trying to search for product vertices by using the name of the of their related detail vertices.
The Expected output is a list of products…

ephraim lambarte
- 121
- 1
- 11
2
votes
1 answer
Find the subtree difference in Gremlin
I described the graph here on gremlify. So I have four types of vertices: Content, User, Group, and Video. Content and Group serves as a container, User and Video are the leaves. Also, I have possible edges between a Group and a User, a Group and a…

vmeln
- 1,289
- 1
- 16
- 40
2
votes
0 answers
Azure Cosmos DB, Gremlin-API and atomic write-operations
We are starting a larger project and have to decide the datastore-technology.
For various reasons, we would like to use Cosmos-DB through the Gremlin-API.
The thing which we are not sure about is how to handle atomic writes. Cosmos' consistency…

metanoia
- 21
- 3
2
votes
1 answer
Which symbols are forbidden for Gremlin vertex label name?
I am stuck on searching this info. Are there any forbidden symbols for creating vertex labels in gremlin?
Especially, I am interested if label name with spaces and brackets like g.addV("New node (1)") is valid?
I'm using gremlin with tinkerpop and…

Maksym Slobodianyk
- 53
- 6
2
votes
1 answer
Problem running Gremlin query in CosmosDb
I have a problem running this Gremlin query in Azure CosmosDB.
g.V().
has('node', 'id', 'new').
fold().coalesce(
unfold(),
addV('node').
property('id', 'new').
property('partitionKey', 'edd1f6ca3b1c446987d7da29e370cc7e')
…

Martin
- 880
- 8
- 20
2
votes
1 answer
How to filter related objects using Gremlin Cosmos DB?
I want to get a ResultSet of Objects that consist of a user and a list of all users that are not yet related to this user.
The result should look like this:
[[user: [USEROBJECT], usersThatAreNotFriends: [[USEROBJECT]...]]...]
I am using the Cosmos…

Manuel Hummler
- 45
- 5
2
votes
2 answers
How is cosmosDB RU throughput enforced
I have a cosmosGB gremlin API set up with 400 RU/s. If I have to run a query that needs 800 RUs, does it mean that this query takes 2 sec to execute? If i increase the throughput to 1600 RU/s, does this query execute in half a second? I am not…

Michael Scott
- 540
- 2
- 8
2
votes
1 answer
Gremlin query to traverse graph bottom to top capturing vertex children
We use Gremlin 3.2 compatible database. Actually, we try Cosmos DB in graph/gremlin mode. But I am looking to gremlin query so not necessary it is related only to Cosmos DB
The graph looks like on the image below
I have created a query that is able…

Regfor
- 8,515
- 1
- 38
- 51
2
votes
1 answer
Gremlin - sum values in group
I've been trying for days to get the following result:
I have this dataset:
e1 = g.addV('company').property('name', 'company-1').next()
e2 = g.addV('company').property('name', 'company-2').next()
p1 = g.addV('product').property('name',…

julianomontini
- 325
- 4
- 18
2
votes
1 answer
Extract subgraph from a graph using Gremlin.net byte code gives error deserializer for \"tinker:graph\" not found
I am trying to get subgraph from a graph using Gremlin.net bytecode syntax and getting error when extracting/Cap from a subgraph. I am able to get the results if I query directly using the query string however not with the fluent API byte code…

Jitendra Mishra
- 41
- 7
2
votes
1 answer
Azure Cosmos db Gremlin elementMap()
Im trying to create a gremlin query in cosmos db where the properties of all vertices are flattened.
The best i have achieved is using "valueMap"
Query
g.V('12345').valueMap(true))
Result
{
"id": "12345",
"label": "product",
"name": [
…

Daniel Gustafsson
- 23
- 2
2
votes
1 answer
How do I simple calculations in CosmosDB using GremlinAPI
I am using CosmosDB with GremlinAPI and I would like to perform simple calculation even though CosmosDB does not support the math step.
Imagine that I have vertex "Person" with the property Age that can have a edge "Owns" to another vertex "Pet"…

Nils Hedström
- 126
- 5
2
votes
1 answer
How to merge values from different objects in gremlin query?
I have a query that returns the output in the following format,
{
"Key": [
"Value1",
"Value2"
],
"Count": [
{
"Count1": 28,
"Count2": 28
},
{
"Count3": 16,
"Count4": 16
…

Kajal Patel
- 99
- 6