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: I tried a million things now, but I think it’s supposed to work with: or But both of them returns Which I don’t understand, because if I do this: I got a list like I want
Tag: gremlin
How to create Gremlin query that only updates defined properties?
I want to create a Gremlin query that only updates the vertex properties that I are not undefined in JavaScript-land. The properties on the actual vertices are defined, but my updateUser function might not actually get both firstName and lastName arguments. Let’s say that I have ‘user’ vertices that have the ‘firstName’ and ‘lastName’ properties. When I call my update
Querying Graphs with Gremlin
Please help me with the query on Gremlin lang I have a graph with 2 types of vertices: User and Group. I need to find friends of ‘U1’. If users have edges ( member or invite ) to ‘Group A’ need to flag them like the below result. Expected result : [ { U2: ‘Member’}, { U3: ‘Invited’ }, {