Questions tagged [gremlinjs]

Gremlin.js is a monkey testing tool which applies concepts of mobile testing to web applications (Node.js). It creates a simulation of random activity by "unleashing a horde of undisciplined gremlins". This activity includes random clicks, data entry, and mouse movement.

Definition:

Gremlin.js is a Node.js library built for monkey testing web applications using the concepts of mobile testing.

Testing includes functions that simulate: mouse movement, random clicks, and random data entry.

Important Links:

24 questions
0
votes
1 answer

How Do I Set a Long Integer Property in Gremlin JavaScript?

** PROBLEM ** I need to set a long integer value in a vertex from my JavaScript/TypeScript code. ** WHY IS THIS AN ISSUE? ** JavaScript stores number as a double in Java or C# world as we can see in the following example: public static async…
Manabu Tokunaga
  • 956
  • 10
  • 19
0
votes
1 answer

ConcurrentModificationException in amazon neptune using gremlin javascript language variant

I am trying to check and insert 1000 vertices in chunk using promise.all(). The code is as follows: public async createManyByKey(label: string, key: string, properties: object[]): Promise { const promises = []; const allVertices =…
codegutsy
  • 37
  • 12
0
votes
1 answer

Gremlin - batch query for adding a vertices if it doesn't exist

We are using the Gremlin JavaScript language variant and Amazon Neptune in our project and we have multiple use cases for the creation of vertices and edges in batch. A simple example would be an array of 200 - 1000 users. I need to perform a batch…
codegutsy
  • 37
  • 12
0
votes
1 answer

Gremlin's valueMap() returns an empty object with JS and Neptune

I'm trying to get all the nodes and it's properties with gremlin and js that has a specific label. It should output something like: [ { p1:v1, p2:v2, px:vx }, { p1:v1, p2:v2, px:vx } ] I tried a million things…
GravityL
  • 35
  • 5
0
votes
1 answer

Gremlin: What if my query cannot start with V() or E()?

The first query executed on my project runs on a potentially empty database, and creates some vertices if they are not created already, so my query cannot start with V() or E() because the database could be empty, also cannot start with addE()…
fermmm
  • 1,078
  • 1
  • 9
  • 17
0
votes
2 answers

In Gremlin, how do I modify a vertex's properties only if a version property matches a number?

In Gremlin/Tinkerpop, I want to perform a versioned upsert on a Vertex. If there is an existing Vertex, I only want to mutate it if the version matches a version number property. Below is the code that attempts to do this using gremlinjs. It fails…
Paul S
  • 892
  • 10
  • 25
0
votes
1 answer

How to make gremlin return properties of the vertices when I do the query g.V().ToList() ? Currently return as undefined

I have a gremlin server in which data is pushed by some c# code (shown below) It basically iterates over the properties of a class and adds those properties to the graph. I communicate with this gremlin server using gremlin in javascript. When I do…
Rohan Khanna
  • 109
  • 1
  • 2
  • 12
0
votes
1 answer

Gremlin Query - Repeat with conditions on edges

I have a gremlin graph structure of a train network. The Vertices are stations, with station id and name as properties. The Edges are tracks with route, kms and stop sequence. There are around 840 stops and 24 routes connecting them. As we can…
Prak_Rum
  • 25
  • 1
  • 11
0
votes
0 answers

Gremlins.js: ReferenceError: document is not defined

I'm attempting to inject the following gremlins.js code into my webpage with the command line (node): javascript:(function(){function callback(){gremlins.createHorde().unleash()} var…
1
2