Valentyn Kahamlyk
Valentyn Kahamlyk
ATApache TinkerPop
Created by Valentyn Kahamlyk on 10/10/2023 in #questions
How to get cardinality of property?
I have a multi property and I want to find out its cardinality. How can I do that? valueMap/elementMap don't help
6 replies
ATApache TinkerPop
Created by Valentyn Kahamlyk on 7/25/2023 in #questions
Is it possible to apply `by` modulator to not last step?
I have TheCrew graph. I'm trying to get 2 properties and unfold values only for second one, query is like g.V().valueMap("location", "name").by(__.unfold()).by() but property order after valueMap can be random, so I added sorting to get expected result g.V().valueMap("location", "name").order(local).by(keys) Is it possible to add by modulator after sorting to valueMap maps? g.V().valueMap("location", "name").order(local).by(keys).by(__.unfold()).by() get error because try to apply all by to order step
12 replies
ATApache TinkerPop
Created by Valentyn Kahamlyk on 4/12/2023 in #questions
Question about `local` step
Sometimes I don't understand how local step works. I want to count how many elements in each array, this query looks correct but gives unexpected result. How to fix it? g.inject([1,2],[1],[1,2]).local(unfold().count())
9 replies