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
0
votes
2 answers

Strange execution behavior of Cosmos Gremlin query

I have a below simple query which creates a new vertex and adds an edge between old vertex and new vertex in the same query. This query works well most of the times. The strange behavior kicks in when there is heavy load on the system and RUs are…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
0
votes
1 answer

Gremlin select multiple vertices gives an output without the properties with null values

In order to get all data from two vertices a and b i used the following g.V('xxx').out('hasA')..as('X').out('hasB').as('Y').select('X','Y'). I get values of X where the value of Y isnt null.I wanted to get all X where the value of Y can be or may…
sand87
  • 123
  • 1
  • 11
0
votes
2 answers

Cosmos DB: Graph - query all nested vertex & edges

I am using Cosmos DB - Graph to store data and developing API to query graph db and return query results in below format. API can accept any node type and id as parameter and traverse through in & out edges to return nested vertex and edges. { …
0
votes
0 answers

How Monitor - Cosmos DB (preview) Requests is calculated?

Azure provides monitor to the incoming request to the Cosmos. When I am alone working on my Cosmos DB, ran a simple select vertex statement(eg., g.V('id')). Then I monitored the incoming request, it shows around 10. But for sure I know i'm the only…
0
votes
1 answer

Cosmos DB - Gremlin API has weird behavior for .tail()?

I create an empty graph partitioned on 'a' and seed with the following: g.addV('person').property('a','1').property('name','person 1').property('number',1) g.addV('person').property('a','1').property('name','person…
Toodleey
  • 913
  • 1
  • 8
  • 22
0
votes
1 answer

CosmosDB Gremlin - filter nodes that don't have a particular type of edge

In a CosmosDB Graph collection, I'm trying to find all nodes of type typeA that do not have any "live" edges pointing to nodes of type typeB. Some edges may be "soft-deleted" (i.e. g.E().has('softDeleted', true) ). These edges should be…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
0
votes
1 answer

Select a vertex if the edge to the vertex has a property value, otherwise choose another vertex with a different edge property value

I am trying to grab vertices connecting a Request vertex to each Card vertex. The card-to-request relationship is one-to-many (each card has many requests). A card may be connected to a request with the property "Status": "In Use" if the card is…
jkost4
  • 73
  • 1
  • 8
0
votes
1 answer

How to do left join in Azure Cosmos DB using gremlin API

Im studying Gremlin API of Azure Cosmos DB and im trying to translate some SQL statements to Gremlin traversals. Commands below: //add product vertex g.addV('product').property('id', 'product1') g.addV('product').property('id',…
0
votes
1 answer

Jagged Result Array Gremlin Query

Please may you help me to write a query that returns each source vertex in my traversal along with its associated edges and vertices as arrays on each such source vertex? In short, I need a result set comprising an array of 3-tuples with item 1 of…
Beans
  • 1
  • 5
0
votes
1 answer

Json Format for azure cosmos graph db bulk import

we are planning to migrate our db to Azure cosmos graph db. we are using this bulk import tool. nowhere it mentioned Json input format. Whats the Json format for bulk import to Azure cosmos graph db…
0
votes
1 answer

How to select posts of thousand of thousands following users in azure cosmos db?

I created sample cosmos db using follow link. https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-model-partition-example And it is nice work. But I have one big problem. how to select top at least 100 posts of my thousands of thousands…
0
votes
1 answer

How to get available Graph container list in my Cosmos Graph DB?

I am trying to get metadata information of my Cosmos Graph Database. There are a number of Graphs created in this database and I want to list those Graph names. In the Gremlin API, we have support to connect to any Graph DB container and then we…
0
votes
0 answers

Why is lazy indexing Mode deleting my data in cosmos even if Time to Live(Ttl) is off?

I used Lazy indexing mode to process for a smaller file, it worked fine. The reason i opted for Lazy indexing mode instead of Consistent indexing mode was that it consumed fewer RU's. But if I am trying to process a bigger file(more MB) with more…
0
votes
1 answer

Finding Vertices that are connected to all current vertices

I am fairly new to graph db's and gremlin and I am having a similar problem to others, see this question, in that I am trying to get the Resource Verticies that meet the all the Criteria of a selected Item. So for the following graph Item 1 should…
Gaz
  • 15
  • 5
0
votes
1 answer

Best way to limit edges to the same group of verices using Gremlin against Azure Cosmos db graph

I need to get vertices filtered by a specific predicate on the properties, and all the edges (with a particular label, and perhaps some predicate on the properties of an edge) existing between them. This is for a Cosmos Azure Db graph, and the…