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
5
votes
1 answer

How to remove an edge and add a new edge between two vertices?

I'm trying to drop an edge and add a new edge between two vertices. How do I do that in Tinkerpop3? def user = g.V().has("userId", 'iamuser42').has("tenantId", 'testtenant').hasLabel('User');…
Vibgy
  • 577
  • 6
  • 15
2
votes
1 answer

Gremlin Value Map With Array of Edges

I am trying to query a vertex with Node Gremlin and AWS Neptune for its properties and get all vertices connected to it by an 'out' edge and all of their properties as well in a single output. For instance, if I have a 'Baker' vertex with an edge…
1
vote
0 answers

How do I retry an aws neptune gremlin ConcurrentModificationException error without having to rebuild the query?

I build up a batch query in variable "gBatchWrite". I try to keep it around 200 operation per Amazon suggestions. Any retries after a "ConcurrentModificationException" fail. It seems that I would have to rebuild the gBatchWrite variable from scratch…
1
vote
0 answers

Gremlin evaluating false part of traversal

Hi I have this snippet of my traversal that's causing some issues. I'm using gremlin js and aws neptune. .choose( token !== undefined, __.choose( __.select('v').has(`${engagementType}Token`), __.choose( …
Kyano
  • 174
  • 1
  • 8
1
vote
1 answer

Could not locate method: DefaultGraphTraversal.addE() Gremlin

For some reason I'm getting the above error when I try to use addE in my traversal. const traversal = await g .V(id) .fold() .coalesce(__.unfold(), __.addV().property(t.id, id)) .inE() .where(__.outV().hasId(bob)) .fold() …
Kyano
  • 174
  • 1
  • 8
1
vote
2 answers

check if value appears within list created from key() step in gremlin

I have a vertex that has a 'title' property. I have other vertices that have outgoing edges that have multiple properties. I'm trying to find vertices that have outgoing edges where the 'title' property value is a property key on the edge. For…
Kyano
  • 174
  • 1
  • 8
1
vote
1 answer

Could not locate method: NeptuneGraphTraversal.values()

I'm getting this error Could not locate method: NeptuneGraphTraversal.values() when running a query using gremlin for aws neptune. The specific query is this: import { process } from 'gremlin'; const { statics, t } = process; function…
Uche Ozoemena
  • 816
  • 2
  • 10
  • 25
1
vote
1 answer

Add edge gremlin query in Nodejs

Here is the code for adding Tribe Vertex let addTribe = g.addV('tribe') addTribe.property('tname', addTribeInput.tribename) addTribe.property('tribeadmin', addTribeInput.tribeadmin) const newTribe =…
1
vote
2 answers

Is there a way to run gremlin.js Monkey Tests on third party URLs?

Is it possible to run Gremlin tests on third party URLs or external websites? For e.g. If I want to run gremlin on Twitter.com, what would I have to do? I've not tried it yet, but I'm thinking a framework like nightwatch.js might be handy, but I'm…
nikjohn
  • 20,026
  • 14
  • 50
  • 86
0
votes
1 answer

valueMap returning empty object with Neptune

First let me say two things: I'm starting with graphDB and I tried this post: Gremlin's valueMap() returns an empty object with JS and Neptune and did not work. I'm following the same steps as I'm using in the gremlin console. In the console is…
Alter
  • 903
  • 1
  • 11
  • 27
0
votes
1 answer

Unable to add edge properties in Neptune/Gremlin?

I've been trying to add edges to existing vertices and give them a specific ID and some properties using the Gremlin library in nodeJS (connecting to an AWS Neptune graph) However, even though it seems as if the edges are created, the ID and…
0
votes
0 answers

Gremlin - Finding Specific Vertex within Path Traversed

I have a very simple graph in which I am returning (recursively) everyone, directly/indirectly, in my graph from a certain person that is older than 5. I am returning the person's properties but I also want to return a "derived relationship" based…
user3726393
  • 265
  • 1
  • 2
  • 11
0
votes
1 answer

Gremlin query in Lambda not returning results

I am trying to execute a Neptune SparQl query inside a Lambda function. Following the documentation : AWS Lambda function examples for Amazon Neptune I have used the sample for nodeJS. Running the sample I get in response : { "value": "5403", …
Pogrindis
  • 7,755
  • 5
  • 31
  • 44
0
votes
1 answer

Multiple add if doesn't exist steps Gremlin

I have an injected array of values. I'm I want to add vertices if they don't exist. I use the fold and coalesce step, but it doesn't work in this instance since I'm trying to do it for multiple vertices. Since 1 vertex exists I can no longer get a…
Kyano
  • 174
  • 1
  • 8
0
votes
1 answer

How to select value to be the value in the property step in gremlin

I'm trying to select a value from an injected array and set it as a value in the property step. This is failing because I can't use the select step inside the property step. This is my current failing query: await g ?.inject([ {…
Kyano
  • 174
  • 1
  • 8
1
2