Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
60 views

Gremlin Query to fetch all objects till specified level along with sibling nodes

I have a Gremlin hierarchy of nodes which are referenced (Refer below pic). How can I retrieve all nodes, including their sibling nodes, at a specific provided level from root node ? For instance, ...
solveit's user avatar
  • 1,139
1 vote
0 answers
44 views

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(...
Roshni Natarajan's user avatar
2 votes
1 answer
345 views

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 ...
Francois's user avatar
-1 votes
1 answer
28 views

Gremlin Query to get longest common subsequence for a given source from the Azure Cosmos graph

lets assume I have got list of all longest common paths for given source say A using below query g.V().hasLabel('A').repeat(out()).until(__.not(out())).path().by('id') Result: [ { "objects":...
place holder's user avatar
0 votes
0 answers
334 views

Tinkerpop Gremlin with Azure Cosmos DB Emulator: Invalid handshake response getStatus: 200 OK

I'm following the tutorials in https://learn.microsoft.com/en-us/azure/cosmos-db/local-emulator?tabs=ssl-netstd21#api-for-gremlin to use azure cosmos db emulator for gremlin. But got always following ...
Peng Liu's user avatar
1 vote
1 answer
495 views

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. ...
Rahul Anand's user avatar
-1 votes
1 answer
112 views

Exception using client and trying to add vertices

Steps in the code: 1.Declared Azure Cosmos DB Configuration variables(Host , PrimaryKey , Database ,Container) 2.Connection Pool 3.WebSocketConfiguration 4.GremlinServer After all above steps, when I ...
place holder's user avatar
1 vote
1 answer
96 views

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 ...
user3713080's user avatar
1 vote
2 answers
116 views

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 ...
Curt's user avatar
  • 60
0 votes
1 answer
276 views

Cannot add vertices or edges to CosmosDB Gremlin graph with Python SDK

I have a Cosmos DB instance running the Gremlin API, and I am using the Python SDK on 3.7. Currently I am trying to build a graph that models papers with topics and authors, by having each object ...
AgentNo's user avatar
  • 251
1 vote
1 answer
238 views

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, ...
Nines's user avatar
  • 21
0 votes
0 answers
291 views

limit() function execution order in Gremlin?

I have encountered a problem when using Gremlin. Vertex JobDefinition1 has edges named JobDefinitionToJobHistory, and the target of these edges are the job history vertices. In 2022-02-12, ...
wei wang's user avatar
  • 155
2 votes
1 answer
112 views

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 ...
Manuel Hummler's user avatar
0 votes
1 answer
47 views

Travers to vertex with multiple incoming edges

I am running cosmosdb with the Gremlin API, giving me a graph database. Most of my gremlin traversals are basic stuff, but I have one that I can't figure out the query for. Take this model I want ...
scphantm's user avatar
  • 4,473
0 votes
1 answer
123 views

Why does looking up a Gremlin vertex after adding one cost so much?

I discovered the following Gremlin query that was charging 60K RUs in Cosmos DB: g.addV(label, 'plannedmeal') .property('partitionKey', '84ca17dd-c284-4f47-a839-a75bc27f9097') .as('meal') ....
Jonathan Eckman's user avatar

15 30 50 per page