lib/grumlin/repository/instance_methods.rb in grumlin-0.20.0 vs lib/grumlin/repository/instance_methods.rb in grumlin-0.20.1
- old
+ new
@@ -83,10 +83,10 @@
g.upsertE(label, from, to, create_properties, update_properties).next
end
end
# edges:
- # [["label", "id", {create: :properties}, {update: properties}]]
+ # [["label", "from", "to", {create: :properties}, {update: properties}]]
# params can override Retryable config from UPSERT_RETRY_PARAMS
def upsert_edges(edges, batch_size: 100, on_failure: :retry, **params)
edges.each_slice(batch_size) do |slice|
with_upsert_error_handling(on_failure, params) do
slice.reduce(g) do |t, (label, from, to, create_properties, update_properties)|