search for value by key within dynamic collection

I am looking to extend discussion held here about filtering vertices based on property value from collection. However, in my case the collection is dynamic e.g. generated using store e.g. following works using a static list [‘red’, ‘green’]. I am able to filter out vertices with just ‘red’, ‘green’ as value in property ‘color_name’. g.V().out().as(‘colors’).store(‘color_list’).by(‘name’)… Read More search for value by key within dynamic collection

Gremlin Python "name 'V' is not defined" when using coalesce to chain insert edges

I am trying to batch insert edges using coalesce . And I was trying to follow this format for batch edge insert that I found on Neptune DB documentation: g.V(‘v-1’) .outE(‘KNOWS’) .hasId(‘e-1’) .fold() .coalesce(unfold(), V(‘v-1’).addE(‘KNOWS’) .to(V(‘v-2’)) .property(id, ‘e-1’)) .V(‘v-3’) .outE(‘KNOWS’) .hasId(‘e-2’).fold() .coalesce(unfold(), V(‘v-3’).addE(‘KNOWS’) .to(V(‘v-4’)) .property(id, ‘e-2’)) .V(‘v-5’) .outE(‘KNOWS’) .hasId(‘e-3’) .fold() .coalesce(unfold(), V(‘v-5’).addE(‘KNOWS’) .to(V(‘v-6’)) .property(id, ‘e-3’))… Read More Gremlin Python "name 'V' is not defined" when using coalesce to chain insert edges