apoc icon indicating copy to clipboard operation
apoc copied to clipboard

Using virtual nodes in Cypher

Open rickardoberg opened this issue 1 year ago • 6 comments

Using virtual nodes in Cypher

It appears that using virtual nodes in Cypher queries is not possible or bugged. Basically, if a procedure/function returns an APOC VirtualNode (or any Node implementation for that matter) I would expect it to be possible to use it as any other node.

Neo4j Version: 5.12.0 Operating System: Windows 11 API: Cypher

Steps to reproduce

Run this Cypher query:

WITH apoc.create.vNode(['vnode'], {name:'one'}) AS one
RETURN one.name

Expected behavior

Should return "one"

Actual behavior

Returns null

The reason I need this to work is to be able to implement field-level access control, which is not supported by Neo4j itself.

rickardoberg avatar Nov 16 '23 09:11 rickardoberg