I'm wondering if it's possible to include something like apoc.create.setProperty or apoc.refactor.invert inside an iterate statement. Something like:
CALL apoc.periodic.iterate("MATCH ()-[rel:RELATED]->() RETURN rel",
"CALL apoc.refactor.invert(rel) YIELD input, output RETURN input, output",
{batchSize:1000, parallel: true})
YIELD batches, total RETURN batches, total
Yield doesn't mesh well with the way iterate works so I can't think of a way to make this work. Anyone have any thoughts?