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
2
votes
1 answer

How can I get all child vertices and its edges (properties for both) recursively using gremlin QL?

I found query below which is perfect to get all child vertices and edges along with their properties for a given single vertex g.V().has("name","gremlin").outE().as('e').inV().as('v').select('e','v').by(valueMap()) However how do I do the above…
nDev
  • 97
  • 2
  • 9
2
votes
1 answer

To Display employee List with its current status for particular organization in gremlin queries

g.V().has('organizationId', 'b121672e-8049-40cc-9f28-c62dff4cc2d9'). as('emp'). outE('hasStatus'). inV(). or( has('endDate', gte(1587820000)), has('release', is(false)) ). as('x'). values('status'). …
2
votes
1 answer

Include a specific edge from a parent vertex in traversal

The image above is a representation of my graph database from Azure Cosmos DB. I need to fetch the addresses with products that are projected with product properties, detail vertices linked to product from address vertex and the properties of…
2
votes
1 answer

Gremlin operation using python in Azure functions

Is was trying to create Azure function using Python(Http trigger) to fetch data from the gremlin graph. I used from gremlin_python.driver import client as clientDriver to import the libraries and it was working fine locally. When i deploy the same…
2
votes
1 answer

Azure Cosmos graph db supported Gremlin and Tinkerpop version

I'm having trouble finding what Azure Cosmos DB supports in using npm gremlin and Tinkerpop. https://www.npmjs.com/package/gremlin The gremlin package makes no reference to client.submit scripts, however, the Azure Node.js sample code uses…
Donnie Kerr
  • 334
  • 4
  • 18
2
votes
0 answers

Is there has any support for custom queries in spring-data-gremlin?

I'm using Azure Cosmos DB. I wanted to write custom queries using spring-data-gremlin API. Is there any option for writing custom queries? Example: @Query(name="Program.findByMajorCategoryName",query="g.V().has(label,…
2
votes
4 answers

Azure Cosmos + Gremlin NodeJS, how to submit fluent query as script (not bytecode -- i know its not supported yet)

I'm trying to write fluent gremlin queries in nodejs for cosmos db, even though they get submitted as string. I've been through the documentation and I've seen it mentioned in a few github threads that although bytecode isn't yet supported, it is…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
2
votes
1 answer

Change Cosmos DB Graph API timeout

It seems that in Cosmos DB Gremlin API, query timeout is set to 30 seconds. Is there a known way to increase it? Timeout is ignored in gremlin-driver 3.4.3 Same behavior with :remote config timeout in Gremlin Console 3.4.3 Increasing throughput…
2
votes
0 answers

Azure Gremlin edge traversal suspiciously high (Out() step) RU cost

I have a weird issue, where doing an out-operation on a few edges causes my RU cost to triple. Hope someone can help me shed light on why + what I can do to mitigate it. I have a Graph in CosmosDB, where there are two types of vertex labels:…
oPolo
  • 516
  • 3
  • 14
2
votes
1 answer

Is there any way to load data directly into json or csv format to cosmos db gremlin api?

I have setup cosmos db gremlin api and created graphs manually by adding nodes and properties and adding edges one by one. Is there anyway to load the data once into cosmos gremlin directly in the json or csv format like we do it in cosmos db…
1
vote
0 answers

How to use a single query to retrieve a vertex whose id is given by the traversal?

I have a graph on Azure CosmosDB which involves company hierarchies where a Top Parent exists and there are child companies like CompanyX(Top Parent) -> CompanyY(Child of X + Parent of A) -> CompanyA(Child of Y + Parent of B,C,D) …
1
vote
0 answers

gremlinpython submit async query returns ClientConnectorCertificateError in Django

I have a module that manages Azure Cosmosdb Gremlin queries. When I call it from jupyter notebooks like this, it works fine. However, when calling it from the Django app I get a ConnectionError: Cannot connect to host…
billmanH
  • 1,298
  • 1
  • 14
  • 25
1
vote
1 answer

Gremlin console how to remote connect behind a proxy

I am using gremlin console to interact with an Azure Cosmos database as explained in this Microsoft quickstart tutorial. However I am behind a corporate proxy and the command :remote connect tinkerpop.server conf/remote-secure.yaml fails with…
Francois
  • 11
  • 3
1
vote
0 answers

Azure Cosmosdb query runs fine in portal but not in text string

My query string is propperly escaped: "g.addV('planet').property('name','D\\PA') .property('class','terrestrial') .property('objid','2875301669077') .property('label','planet') .property('radius',0.0814) .property('mass',0.9808) …
billmanH
  • 1,298
  • 1
  • 14
  • 25
1
vote
0 answers

BulkExecution in Azure CosmosDB for ASP.Net MVC 4.7.2 version

Description: What's my goal : want to do bulk execution for Vertices and edges to create graph in azure cosmosDB with c# code as below BulkOperationResponse bulkOperationResponse1 =await graphBulkExecutor.BulkImportAsync( gremlinElements:…
1 2
3
18 19