Skip to content
Advertisement

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’ }, {

Advertisement