janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

How do I use Gremlin to attach attributes to Vertices?

Open Common-zhou opened this issue 5 years ago • 0 comments

Describe the feature: Hello, I am currently using Gremlin to implement some queries. I would like to ask if Gremlin has a way to attach attributes to Vertex? For example, appending to a Vertex (A) on a path is based on a property of A Vertex (B). I've seen a way to add attributes, but it's inefficient and probably not for me.

Describe a specific use case for the feature: For example, I need to calculate the score of a Vertex for subsequent queries.Calculate a 1 - > 5, 2 - > 8... Then in a subsequent query, I need to pull out the property based on that Vertex and assemble the result

Common-zhou avatar May 18 '21 08:05 Common-zhou