Cannot run the following example (copied from Graph Grouping - APOC Extended Documentation) in neo4j sandbox.
CREATE
(alice:Person {name:'Alice', gender:'female', age:32, kids:1}),
(bob:Person {name:'Bob', gender:'male', age:42, kids:3}),
(eve:Person {name:'Eve', gender:'female', age:28, kids:2}),
(graphs:Forum {name:'Graphs', members:23}),
(dbs:Forum {name:'Databases', members:42}),
(alice)-[:KNOWS {since:2017}]->(bob),
(eve)-[:KNOWS {since:2018}]->(bob),
(alice)-[:MEMBER_OF]->(graphs),
(alice)-[:MEMBER_OF]->(dbs),
(bob)-[:MEMBER_OF]->(dbs),
(eve)-[:MEMBER_OF]->(graphs)
^^^ succeeded
CALL apoc.nodes.group(['*'],['gender'],
[{`*`:'count', age:'min'}, {`*`:'count'} ])
^^^ failed with the following error:
Something went wrong: *"TypeError: Cannot read property 'join' of null"* and the application can't recover.
Tried in neo4j 4.2.1 + apoc 4.2.0.0 installed on my mac and ran into the same issue.
Tried to replace ` in `*` with ' and ran into the following error:
Invalid input '[': expected "+" or "-" (line 1, column 40 (offset: 39))
"CALL apoc.nodes.group(['*'],['gender'],[{'*':'count', age:'min'},{'*':'count'}])"
Does anyone know what is wrong with the "query"? Thanks!