Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-26-2022 02:38 AM
07-26-2022 11:28 PM - edited 07-26-2022 11:36 PM
You could either use Java types:
List<Integer> valueList = List.of(1, 2, 3, 4);
Map<String, Object> values = new HashMap<>();
values.put("list", valueList);
client.query("UNWIND $list as value return value")
.bindAll(values)
.fetch().all()
.forEach(System.out::println);
or use Driver's value types
Map<String, Object> values = new HashMap<>();
values.put("list", Values.value(Values.values(1, 2, 3, 4)));
client.query("UNWIND $list as value return value")
.bindAll(values)
.fetch().all()
.forEach(System.out::println);
07-31-2022 10:03 PM
Thanks for giving the response, But In my case, I have a list of maps. Ex. List<Map<String,Object>> value.
All the sessions of the conference are now available online