I'd like to filter some of the nodes (or relationships) from the meta graph.
If I just call apoc.meta.graph()
, the resulting nodes (and relationships) seem to have properties:
"nodes": [
{
"identity": -1826,
"labels": [
"A"
],
"properties": {
"name": "A",
"count": 21
}
}
...
]
However, the following query fails to select the nodes without name "A", but results in no nodes at all.
call apoc.meta.graph()
yield nodes, relationships
with [x in nodes | x.name <> "A"] as nodes, relationships
return nodes, relationships
I also tried x.properties.name
or x["properties]["name"]
, but all result in no nodes at all. So it seems that these virtual nodes don't seem to have any properties.
Any ideas on how to properly filter nodes (or relationships) from the meta graph?
Thx, Koen