Gremlin comparison between one node's own properties
g.V().hasLabel("person").where(__.values("age"), lt(__.values("dayofBirth")))
or
g.V().hasLabel("person").where(__.values("name"), neq(__.values("birthdayMonth")))
, but this doesn't seem to work in gremlin.
I know that something like this works instead:...Is there an ETA on Neptune returning full element data?
Gremlin Query timeout issue
Partition strategy with an anonymous graph traversal and aliasing
MergeE with a conditional on the value being set
["modifiedTime" : 'Wed Mar 05 12:15:39 EST 2025']
if the timestamp needs to be updated, or produces an empty map [:]
otherwise.
Your approach of directly modifying the edge certainly can work, but I would give a caveat that this is not how the mergeE step was intended to be used. One thing you are missing if you want to continue with this approach is that the "onMatch" traversal must still produce a map. The simplest fix is to return an empty map if you don't want mergeE to make any changes beyond what is already done by your "match traversal". This might look something like this:...Gremlin python trying to connect Neptune WS when is down

Gremlin python connection to Neptune via IAM and WS
cypher-gremlin-console-plugin with Tinkerpop 3.7.2
Gremlin python MergeV update properties
set
cardinality for properties. Essentially what that means, is if I start with a vertex with property("name", "Alice")
, and I try to overwrite the property with property("name", "Bob")
Neptune will instead add the new property to a set such that vertex.name = {"Alice", "Bob"}
. I think this is what you are seeing this set cardinality behaviour when using MergeV().
If you want to use mergeV and enforce single cardinality for properties (overwrite existing values instead of appending), you can try a query like this:
```...How can I use a subquery to translate airport code DAL into icao airport code KDAL, w air-routes?
g.addV("aircraft").property("aircraftLocation", "DAL")
I want to write a query that reports the location of all my aircrafts like so: [tailNumber:N12345,aircraftLocationIcao:KDAL]
To accomplish this, I need to translate the IATA aircraft location "DAL" into the ICAO aircraft location "KDAL". So the .project() step is not straightforward....Gremlin.net for .net 8
Trying to load air-routes.graphml yields no such file or directory
graph.io(graphml()).readGraph('~/Downloads/air-routes.graphml')
yields ~/Downloads/air-routes.graphml (No such file or directory)
```~ % curl https://raw.githubusercontent.com/krlawrence/graph/refs/heads/master/sample-data/air-routes.graphml -o air-routes.graphml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed...Neptune, Gremlin Java & Bindings
GroovyTranslator.DefaultTypeTranslator
:
```
@Override
protected Script convertToScript(final Object object) {
if (object instanceof Bytecode.Binding) {...Hot reloading of SSL certificates in gremlin-server
I am not sure how to use mergeE and mergeV using gremlin_python
Gremlin-JavaScript Global Websocket
How to dynamically add custom Steps at runtime?
Graph computer question
gremlin> g.V(1,1).count()
==>2
gremlin> g.V(1,1).count()
==>2
TypeScript incomplete declaration of Traverser
get
as an method to retrieve a specific object.
```
const { graph: orgDb, client: nClient } = connectNeptune();
const dept_and_div = (await orgDb.V().has('email', "[email protected]")
.inE('manages').outV().valueMap()...How to create indexes by Label?
Is it possible to create an index for vertexes and edges by specifying them by label since I have vertices and edges with different labels that have different properties? Does anyone know what this implementation would look like? In my current implementation I do it in a simple way as follows: ...
just by calling g.V().limit(1) with concurrent calls on an r6g.2xlarge machine, the average time is 250msHow may concurrent calls? An
r6g.2xlarge
instance has 8 vCPUs (and 16 available query execution threads). If you're issuing more than 16 requests in parallel, any additional concurrent requests will queue (an instance can queue up to 8000 requests). You can see this with the /gremlin/status
API (of %gremlin_status
Jupyter magic) with the number of executing queries and the number of "accepted" queries. If you need more concurrency, then you'll need to add more vCPUs (either by scaling up or scaling out read replicas).
But in the query mentioned, the bottleneck starts at the stage where it calls the last otherV() before path(). ...