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

Unable to connect to the remote server Gremlin API ---- Gremlin.Net

I am trying to connect Azure Cosmos DB using Gremlin API through Gremlin.Net. I am getting this error: System.Net.WebSockets.WebSocketException: 'Unable to connect to the remote server' The credentials are EndPointUrl: "localhost://8081", Port:…
azhar rahi
  • 331
  • 4
  • 16
0
votes
1 answer

Cosmos DB hybrid data APIs access (MongoDB & Gremin)

Is it possible to add data with the MongoDB APIs, then add edges between the documents with Gremlin, and query the same data with both APIs?
0
votes
1 answer

Gremlin : Alternative for otherV in CosmosDB Gremlin API

I don't want the same vertex to be traversed again, but I am not able to use otherV in CosmosDB Gremlin API. Is there an alternative for that?
0
votes
2 answers

Azure Cosmos DB Emulator is not running any API except SQL API

I am trying to connect Azure Cosmos DB emulator using command line with /EnableGremlinEndpoint. However the Cosmos DB Emulator never started. And if I run it without specifying any endpoint, it started and opened the page on browser. I have even…
azhar rahi
  • 331
  • 4
  • 16
0
votes
1 answer

Gremlin : How to get all the vertex details in the traversal?

Sample Data A knows B A knows C A knows D B knows E C knows F Desired Output B C D E F I tried the following query, but it's not working, g.V('A'). out('knows'). as('x'). out('knows'). as('x'). project('Employee'). by(select('x'))
0
votes
1 answer

Gremlin query to get all the directly as well as indirectly related vertices

I have a graph database in which there is a root vertex with some "id= Xyz".This vertex is related to 3 more vertices with an edge having relationship of a "child". Now these 3 vertices themselves have 2 connected vertices each with the same…
0
votes
1 answer

Cosmos Graph DB auto-failover when using region-specific Gremlin API endpoints?

Following the advice in this article, I have configured my applications to use region-specific Gremlin endpoints so that reads and writes are always directed to the master replica in the same data centre (the Cosmos DB account is multi-master and…
ASH
  • 573
  • 2
  • 7
  • 20
0
votes
1 answer

Querying Vertices through another vertex [GREMLIN]

The image above is how my graph looks like, and i would like to query the following output: [ { chart:{ name: 'chart1', id: 'chart1', label: 'chart', pk: 'chart1', }, …
0
votes
1 answer

Understanding "x-ms-request-charge" and "x-ms-total-request-charge" in CosmosDB Gremlin API

I am using gremlin (version 3.4.6) package to query my Cosmos DB account targeting Gremlin (Graph) API. The code is fairly straightforward: const gremlin = require('gremlin'); const authenticator = new…
Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
0
votes
1 answer

Is there a good GUI for Azure Cosmos for visualisation and editing?

I am looking for any type of GUI for graph visualization and editing of my cosmos gremlin graph. Thanks in advance.
0
votes
1 answer

How can I set the values of a list property in gremlin (CosmosDb) and project it in the query result?

I have a vertex which has a list property, and I want to replace the values in said property and project out the result in a specific format. For context, let's assume the following data: g.AddV("Post").property("id", "1") .property(list, "Tags",…
0
votes
1 answer

Cosmos gremlin performance issue with query

I am trying to run this query below but get a timeout issue. Where is the inefficiency here? g.V().hasLabel('RiskLibrary','name','General Business','active','1').as('lib').select('lib'). outE('CONTAINS_RISK').select('lib').project('Risk…
0
votes
1 answer

GraphDb Indexing Policies

Consider the following json responses.. If you run the graph query g.V().hasLabel('customer'), the response is: [ { "id": "75b9bddc-4008-43d7-a24c-8b138735a36a", "label": "customer", "type": "vertex", "properties": { …
m1nkeh
  • 1,337
  • 23
  • 45
0
votes
1 answer

How to insert data as JSON object with Gremlin API in Azure Cosmos DB

How to insert data as a JSON object in Gremlin Currently, the following query is used to insert person object with some properties: g.addV('person').property('firstName', 'Thomas').property('lastName', 'Andersen').property('age',…
0
votes
0 answers

Does data always stored in JSON format even if we choose MongoDB API, Cassandra, Tables, or Gremlin(Grapgh API)?

I was going through the Indexing policies article by Microsoft: https://learn.microsoft.com/en-us/azure/cosmos-db/index-overview states that "Every time an item is stored in a container, its content is projected as a JSON document, then converted…