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

All Questions

Tagged with
0 votes
0 answers
25 views

Neptune gremlin query times out

I have a Neptune cluster and I am using Gremlin for my queries. I have a query where it traverses nodes and adds other nodes connected to it. The issue is when I run this through the Notebook it runs ...
Khashayar's user avatar
  • 2,024
1 vote
2 answers
43 views

Gremlingo stuck while evaluting g.V().hasNext()

I have a piece of code where i evaluate to drop vertices but only if a pre-fetch of g.V().<filters>.hasNext() returns true. Problem is on my subsequent call to fetch the nodes themselves it is ...
Wajih Siddiqui's user avatar
0 votes
1 answer
19 views

Apache TinkerPop Gremlin query language is not getting converted to Neptune-specific steps that are optimized to run on the underlying Neptune engine

I am using explain() API on AWS neptune cluster as below- GraphTraversalSource g = getTraversal(cluster); TraversalExplanation explain = g.V().hasLabel("Users").explain(); System.out....
dishabehrani77's user avatar
0 votes
1 answer
30 views

Gremlin query, get all the nodes 2 - 4 steps from the selected nodes

I would like to retrieve all the nodes that are 2 to 4 steps away from a selected node. My thought was that I could separate the query into two repeat().times(2) step so that I can call them later: ...
Herman Yuen's user avatar
0 votes
0 answers
44 views

Why "Could not locate method: NeptuneGraphTraversal.property()" after addE()?

I'm trying to convert the code from this QA about copying a node from groovy gremlin to nodejs gremlin. One section of that code I've converted like so this.__.select('source').inE().as('e'). select(...
Joseph Summerhays's user avatar
0 votes
0 answers
16 views

Setting constants for usage in math steps with select in gremlin

I have a working js gremlin query for Haversine distance which I am looking to make more composable by setting constants for usage in the math step in some other way than using withSideEffect. The ...
ashissl's user avatar
  • 157
0 votes
1 answer
22 views

Gremlin - can I attach a property to a path?

So my question is, after traversal, I have got several paths, a path looks like node1-edge1-node2-edge2-node3, now I want to attach a property called 'frequency' to this specific path, and its values ...
Z Yk's user avatar
  • 1
0 votes
1 answer
70 views

Neptune graph traversal that uses dynamically calculated values from last vertex to select outgoing edges for further traversal

Here is my graph: Here is graph building code: // backslashes included so the code can be copy and pasted into gremlin console g\ .addV("Person").property(T.id, "A").as("a&...
spc16670's user avatar
  • 536
0 votes
1 answer
29 views

Neptune Gremlin how to break cycles when collecting paths

I have the following graph: Created using: g.addV("Person").property(T.id, "1").as("p1") .addV("Person").property(T.id, "2").as("p2"...
spc16670's user avatar
  • 536
0 votes
1 answer
43 views

Neptune gremlin graph traversal that uses previous edge property to decide next edge, and the property is a collection

My requirement is to use properties from incoming edge which can be sets of strings to decide which outgoing edges to select for further traversal. If any of the values in one collection can be found ...
spc16670's user avatar
  • 536
1 vote
1 answer
27 views

why doesn't this graph traversal object have a .from() function? gremlin query in nodejs

I've encountered a bug, and here is the minimal replication of it in nodejs. g.addV("foo").as("x").addV("bar").as("y").addE("relatesTo").from("x&...
Joseph Summerhays's user avatar
0 votes
2 answers
51 views

Gremlin Console - Connecting to Amazon Neptune with Sig4 signing

I need to connect to Amazon Neptune using Gremlim console. Tried all steps for setup and signing configuration but following error occurs when connecting to Neptune. Steps performed: Install JDK ...
the-petrolhead's user avatar
0 votes
1 answer
60 views

efficient graph traversal to find connected components

I'm new to graphDB, I have a graph as shown in the attached image. I want to find a connected path like "A1,E1,A2,D2,A3" for this I wrote the following query g.V().hasLabel('A1').repeat(inE(...
Raj's user avatar
  • 411
0 votes
1 answer
27 views

Gremlin query to get nodes, edges and children in Java

For compatibility with APIs previously exposed by a Java library for Spring Boot, which I am modifying to integrate with AWS Neptune, I need to load a "node" and all its children, along with ...
CptWasp's user avatar
  • 482
1 vote
1 answer
33 views

Neptune Cardinality for mergeV option error

I am using gremlingo to write golang query to upsert value when match a vertice and replace this value with single cardinality so that it will not append value that is accepted as default of list in ...
SuperHaoyu's user avatar

15 30 50 per page
1
2 3 4 5
50