SystemDb { @Procedure public Stream<RowResult> execute(@Name("DDL command") String command, @Name(value="params", defaultValue = "{}") Map<String ,Object> params) { Util.checkAdmin(securityContext,"apoc.systemdb.execute"); return withSystemDbTransaction(tx -> tx.execute(command, params).stream().map(map -> new RowResult(map))); }  @Procedure Stream<NodesAndRelationshipsResult> graph(); @Procedure Stream<RowResult> execute(@Name("DDL command") String command, @Name(value="params", defaultValue = "{}") Map<String ,Object> params); @Context
    public ApocConfig apocConfig; @Context
    public SecurityContext securityContext; }
@Test public void testExecute() { TestUtil.testResult(db, "CALL apoc.systemdb.execute('SHOW DATABASES') YIELD row RETURN row", result -> { List<Map<String, Object>> rows = Iterators.asList(result.columnAs("row")); org.hamcrest.MatcherAssert.assertThat(rows, Matchers.containsInAnyOrder( MapUtil.map("name", "system", "default", false, "currentStatus", "online", "role", "standalone", "requestedStatus", "online", "error", "", "address", "localhost:7687"), MapUtil.map("name", "neo4j", "default", true, "currentStatus", "online", "role", "standalone", "requestedStatus", "online", "error", "", "address", "localhost:7687") )); }); }