lib/grumlin/shortcuts/upserts.rb in grumlin-0.20.2 vs lib/grumlin/shortcuts/upserts.rb in grumlin-0.21.0

- old
+ new

@@ -8,11 +8,11 @@ shortcut :upsertV do |label, id, create_properties = {}, update_properties = {}| self.V(id) .fold .coalesce( __.unfold, - __.addV(label).props(**create_properties.merge(T.id => id)) - ).props(**update_properties) + __.addV(label).props(Cardinality.single, **create_properties.merge(T.id => id)) + ).props(Cardinality.single, **update_properties) end shortcut :upsertE do |label, from, to, create_properties = {}, update_properties = {}| self.V(from) .outE(label).where(__.inV.hasId(to))