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

All Questions

Tagged with
0 votes
1 answer
16 views

How is select being used outside a traversal? groovy gremlin vs nodejs gremlin

I found this QA to be very useful, or at least would be if I understood what the heck is going on, and could translate it from groovy gremlin to nodejs gremlin. What's tripping me up is the use of the ...
Joseph Summerhays's user avatar
1 vote
1 answer
48 views

Migrating a node label in gremlin tinkerpop

I'm working on migrating a graph from an old naming system to a new one and am looking for an efficient way to effectively re-label a given node label without losing node or edge properties or any ...
ashissl's user avatar
  • 157
1 vote
3 answers
123 views

Running a local tinkerpop gremlin graph for testing in nodejs

I'm looking for a solution to run a gremlin tinkerpop graph locally to use for toy graphs for unit testing with Jest. I saw tinkergraph, but it doesn't appear to have a javascript implementation that ...
ashissl's user avatar
  • 157
0 votes
1 answer
603 views

Gremlin-Visualizer not displaying local graph

I am trying to display a small (455 node) TinkerPop/Gremlin graph created on my Mac running Big Sur (11.6) through Gremlin Console (3.4.8) on a local TinkerPop server (3.5.1) using Gremlin-Visualizer ...
Michael Bauer's user avatar
0 votes
1 answer
575 views

Gremlin - How to return a property of an edge alongside a node result?

I would like to know how to add to the result a property of the edge that links a node to another node I'm using node.js to make queries to a Neptune database through Gremlin. Then I send the result ...
vyavar ignut's user avatar
1 vote
1 answer
544 views

How to return all steps of traversal even if Gremlin query can not complete?

My problem is the following: I have a graph containing vertices labeled as 'user' and edges between them that corresponds to their family relationship. The two types of vertices are parent users and ...
szeb's user avatar
  • 376
1 vote
1 answer
248 views

Circular JSON issue in Node.js on Gremlin query

JanusGraph is running on localhost:8182 in a Docker container I'm running gremlin console in a Docker container that's linked to the Janusgraph Docker container I can run successful traversals ...
Greg's user avatar
  • 321
2 votes
1 answer
521 views

Gremlin Javascript order by function

I use gremlin-javascript (in aws Neptune) to traverse the remote graph and get a list of vertex. I want order the vertex by their createdAt date property. But since I have multiple order().by(), I ...
Robel Tekle's user avatar
0 votes
1 answer
1k views

In tinkerpop gremlin, how do I search on properties of a vertex where there is a list of objects?

I have a vertex with the label MyVertex that has the following properties { text: "hello world", indicator: { code: [ { unit: "thing", val: "123" }, { ...
zeevo's user avatar
  • 23
0 votes
1 answer
1k views

AWS Neptune, JS, Gremlin: add Vertex with optional Edge

Sometimes there is need to create Vertex with optional Edge. g.addV('label') .property(id, 'uniq_id_2').as('u') .property('edge_is_needed', edgeIsNeeded) .constant(edgeIsNeeded) .choose(eq(true), ...
aring's user avatar
  • 3,562
2 votes
1 answer
1k views

What is the equivalent of the gremlin queries in gremlin javascript?

How can I write the 3 gremlin queries below with gremlin javascript, please? gremlin> g.V.filter{it.name.matches(".*ark.*")}.name g.V().filter({ it.getProperty("name").contains("ark") }) g.V()....
Bằng's user avatar
  • 636
1 vote
2 answers
2k views

Using Predicate in gremlin javascript

I want to use gremlin-javascript to traverse the remote graph and get a list of vertex, whose id is within a list of predefined ids. const gremlin = require('gremlin'); const Graph = gremlin....
Bằng's user avatar
  • 636
1 vote
1 answer
2k views

Gremlin Server as REST API with dynamically created data

Let's say I have the following: - a node.js server that is able to query a database and receive a (possibly big) JSON - a gremlin server (configured with gremlin-server-rest-modern.yaml but maybe ...
Adrian Pop's user avatar
  • 1,939
3 votes
2 answers
1k views

Baffled by all this Node -> Titan stuff

I'm new to Java, Gremlin, Nodejs, Tickerpop, Maven and just about everything else. What does this code do? In particular what is 'java.import' doing? Is it a Java class? What has this got to do with ...
Ian Warburton's user avatar