<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="NR-2382_remove_dupe_rels:1" author="rshield" run-always="true">
        <cypherquery>
            <![CDATA[
                UNWIND [
                   { cId: "4573413a-9e9a-4621-a560-46d1c14a89b0", pId: "f40b4189-c4c9-4549-ae0a-2f13ca18cf1f" },
                   { cId: "3a1befa6-8234-40ae-8102-8fb57bbd6900", pId: "f6609cd7-c271-43f5-817d-9ef818a1a4f8" },
                   { cId: "6c79703c-62e2-42b2-a775-c30c23b963a4", pId: "13fec794-4d57-47e9-98c6-525bc8a4808d" }
                ] as needle
                MATCH(c:NrContribution {id: needle.cId})<-[r:IS_MAIN_PERFORMER]-(p:NrContributor:NrPerformance {id: needle.pId})
                WITH c, p, collect(r) as rels
                CALL apoc.refactor.mergeRelationships(rels, {properties:"discard"})
                YIELD rel RETURN rel
            ]]>
        </cypherquery>
    </changeset>
</changelog>