Retrieving Multi Properties. #123
-
Hi, Thank you for the fantastic library . This helped me get going really fast. Much appreciated (and Sponsored!). I'd love to see some examples on how to retrieve multi properties. Right now when I use a projection and use Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, thanks for the sponsoring. As far as I can see it, every operator that does projections with 'By' will only ever consider the first value on the traversal. If you need to project to all property values, try aggregating (collecting, folding, you name it), like ....By(__ => __.Values(x => x.SomeProperty).Fold()). More info on the Gremlin fold-step: https://tinkerpop.apache.org/docs/current/reference/#fold-step |
Beta Was this translation helpful? Give feedback.
Hi,
thanks for the sponsoring.
As far as I can see it, every operator that does projections with 'By' will only ever consider the first value on the traversal. If you need to project to all property values, try aggregating (collecting, folding, you name it), like ....By(__ => __.Values(x => x.SomeProperty).Fold()).
More info on the Gremlin fold-step: https://tinkerpop.apache.org/docs/current/reference/#fold-step