neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            

Home Page:https://neo4j.com/labs/apoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Neo4j APOC custom function hangs when nothing is found

viamo-sl opened this issue · comments

Details: Neo4j APOC custom function hangs when nothing is found
The following Cypher queries lead to a hang-up:

CALL apoc.custom.declareFunction('test(limit :: INTEGER)::LIST OF INTEGER?', '
    MATCH (m:Movie)
    WITH m.id AS id
    LIMIT $limit
    RETURN id
')

RETURN custom.test(0) as ids

Expected Behavior (Mandatory)

[{'ids': []}]

Actual Behavior (Mandatory)

hang-up