Replies: 2 comments 3 replies
-
Hi, Thanks for trying us out. Currently neither size() nor collect() are implemented. As far as I know, there is no alternative cypher statement to achieve the same effect of collect(). For collect() function, we didn't prioritize it but we can implement probably in 1-2 weeks. For size() function, it's tricky to support since we don't have notion of PATH in the system yet. But if my understanding is correct, you seems to be asking for the degree of friend. We can also try to support degree function in a few weeks. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
I want aggregate properties of a node into a list and for that case I wanted to use the cypher collect function like in the example here: neo4s and write a query like:
MATCH (p:Person)-[:IS_FRIENDS_WITH]->(friend:Person)
WHERE size((friend)-[:IS_FRIENDS_WITH]-(:Person)) > 1
RETURN p.name, collect(friend.name) AS friends, size((friend)-[:IS_FRIENDS_WITH]-(:Person)) AS numberOfFoFs;
But when I try to execute that query I get this error: RuntimeError: Catalog exception: COLLECT function does not exist.
I also didn't find the function in the kuzu docs so I guess it is not implemented. Is there a way to work around that or is it planed that the collect function will be available soon?
Thanks for the answer
Beta Was this translation helpful? Give feedback.
All reactions