Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.21 KB

File metadata and controls

36 lines (28 loc) · 1.21 KB

SystemDB

In Neo4j 4.0 the concept of multi-database was introduced. There’s now a database called system which contains some internal information, e.g. configured permissions. Those can be exposed by APOC.

apoc.systemdb.graph
Caution

Do not rely on the data structures within system database. They are a non-public implementation details of Neo4j and might change within minor release updates.

Table 1. Procedures
Qualified Name Type Release example$generated-documentation/apoc.systemdb.graph.adoc example$generated-documentation/apoc.systemdb.execute.adoc

apoc.systemdb.export.metadata [book]

label:procedure[]

label:apoc-full[]

isType example
CALL apoc.systemdb.graph() YIELD nodes, relationships RETURN *;
CALL apoc.systemdb.execute('SHOW DATABASES') YIELD row RETURN row.name as dbName;
CALL apoc.systemdb.execute(["CREATE USER foo SET PASSWORD 'test'", "GRANT ROLE myRole TO foo"])