Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-01-2019 09:00 PM
@Query("CALL apoc.periodic.iterate("+"""
+ " UNWIND $items as item return item" ,"
+ ""MERGE (src:Item {name: item.name}) "
+ " ON CREATE SET src.name = item.name, "
+ " src.updateDate = {processDate} "
+ "MERGE (dest:ItemDet {upc: item.upc}) "
+ " ON CREATE SET dest.upc = item.upc, "
+ " dest.creationDate = {processDate} " )",
{batchSize:1000, parallel:false,iterateList:true,params:{items:{items}}})")
Result mergeItems(@Param("items") List<?> items,
@Param("processDate") String processDate);
02-03-2019 03:44 PM
You missed to pass in processDate
as a parameter to the periodic.iterate.
All the sessions of the conference are now available online