Using this tutorial as inspiration I have the following fabric config (real db names & IPs changed):
- NEO4J_fabric_database_name=fabric
# db1 (local)
- NEO4J_fabric_graph_0_uri=neo4j://localhost:7687
- NEO4J_fabric_graph_0_name=db1
- NEO4J_fabric_graph_0_database=domain1
# db2 (local)
- NEO4J_fabric_graph_1_uri=neo4j://localhost:7687
- NEO4J_fabric_graph_1_name=db2
- NEO4J_fabric_graph_1_database=domain2
# db3 (remote)
- NEO4J_fabric_graph_2_uri=neo4j://123.456.789:7687
- NEO4J_fabric_graph_2_name=db3
- NEO4J_fabric_graph_2_database=domain3
When the server has started, I'm able to confirm 3 dbs in the fabric catalog:
RETURN fabric.graphIds()
---
[1,0,2]
And any of the three dbs can be individually accessed, e.g:
USE fabric.db1
MATCH (p:Post)
RETURN count(p)
---
2520
But if I try and cycle through all dbs in the catalog in a single query, as shown in the tutorial, this error is generated:
UNWIND fabric.graphIds() as graphId
CALL {
USE fabric.graph(graphId)
MATCH (p:Post)
RETURN count(p) as postCount
}
RETURN postCount
---
Dynamic graph lookup not allowed here. This feature is only available in a Fabric database
Attempted to access graph fabric.graph(graphId)
"USE fabric.graph(graphId)"
Running Neo4j Enterprise 4.1.