Questions tagged [azure-cosmosdb-gremlinapi]

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.

283 questions
1
vote
1 answer

Need a query to retrieve complete graph

I am trying to retrieve all the node and properties details in parent-child hierarchy. Nested within each other. Since I am new with gremlin, graphDB I am having really tough time to get it done. Please suggest a solution and if you could walk me…
1
vote
3 answers

Gremlin.Net.Driver.Exceptions.ConnectionClosedException

Created object for gremlinServer , connectionPoolSettings var gremlinClient = new GremlinClient(gremlinServer,connectionPoolSettings:connectionPoolSettings); using (gremlinClient) { var v1 = graph.AddV("person").Property("name",…
1
vote
1 answer

Azure cosmosDB gremlin - how to update vertex property with another vertex's property

On an Azure cosmosDB gremlin instance, I have 2 vertices A and B linked by and edge E. Both vertices has a 'name' property. I'd like to run a query which will take A's name and put it in B when I…
ATM
  • 160
  • 2
  • 10
1
vote
2 answers

Azure cosmosDB graphDb GremlinApi high cost

We are investigating deeper CosmosDb GraphDb and it looks like the price for simple queries is very high. This simple query which returns 1000 vertices with 4 properties each cost 206 RU (All vertices live on the same partition key and all documents…
draco951
  • 226
  • 3
  • 13
1
vote
1 answer

Gremlin simple path query, to get path based on first edge encountered property

Sample Graph - actual graph Image See here Code to generate Vertex graph.addV("organization") .property("name", "CITI") .property("type", "ORG") .property(T.id, "1") .property("orgName",…
1
vote
1 answer

Gremlin - avoid traversing already seen edges

I've the following model which I'd like to model as a graph in Azure CosmmodDB. So I have a user that can be in multiple groups, user can also have multiple permissions attached, groups can also have multiple permissions attached. I want to find an…
macpak
  • 1,190
  • 1
  • 14
  • 28
1
vote
1 answer

Why CommitAsync does not complete in Gremlin .NET Transactions

I am having trouble with gremlin .NET Gremlin server: 3.6.0 Gremlin .NET: 3.6.0 Code: var gremlinServer = new GremlinServer("localhost", 8182); ConnectionPoolSettings connectionPoolSettings = new ConnectionPoolSettings() { …
1
vote
0 answers

transaction between cosmosdb core to gremlin c# .net core

enter image description here I have two databases, 1 cosmos DB core, 2 cosmos gremlin. I perform an action of creating a new user (or updating or deleting) and I want to make sure that Atomicity guarantees that all the operations done inside a…
1
vote
1 answer

Is there a version of gremlin "bothE" that isn't actually "eitherE"?

I want to find all vertecies which has an edge to a specific vertex but the vertex should also have an edge back to the other vertex. The following query does not behave in the way i want, it seems that bothE() means either in or out or both, not…
user3713080
  • 399
  • 4
  • 17
1
vote
2 answers

Why is my gremlin.net gremlin client not working with azure cosmos graph db

I've set up a serverless azure cosmos graph db account and now I'm trying to connect to it using the following code: .AddSingleton(s => { var connectionPool = new ConnectionPoolSettings { MaxInProcessPerConnection =…
user3713080
  • 399
  • 4
  • 17
1
vote
2 answers

Project by, with optional properties

I believe this question is for Tinkerpop, not specific to the CosmosDB implementation; just some semantics might be baked into my query examples. I've developed a data layer that creates queries based on some metadata information. Currently, my data…
1
vote
1 answer

Gremlin Query to check for pairs of edges on vertices

For some context: I am currently using azure cosmos db with gremlin api, because of the storage-scaling architecture, it's much less expensive to perform a '.out()' operation than a '.in()' operation, hence I always create double directed edges, so…
1
vote
1 answer

I have to handle an exception in Polly where I need to Compare the data in the result set with the data in Cosmos Database and then Retry

For every 200 status code that we're receiving from the gremlin query, I want to check if the result vertex matches with the vertex that needed to be updated. And if it doesn't match then do a retry. public async Task
1
vote
1 answer

need a gremlin query that summarizes edges by in out vertex labels by counts

Using Cosmos DB Gremlin API, I’m trying to create a gremlin query that summarizes edges by vertex labels by counts The closest thing I can come up with doesn’t do the counting just deduping. Any help would be greatly…
1
vote
1 answer

How to reduce RUs consumed by a cosmos gremlin query

I have a simple query to fetch vertex count in cosmos gremlin database. g.V('person1').out('know').hasLabel('person').count() The output of this query is say 1000. The number of RUs consumed by this query is ~466. Just wanted to know if there is any…