Changes to procedures and functions in Neo4j 5

The following are all changes and deprecations for the Neo4j procedures in Neo4j 5.

Table 1. All changes to procedures and functions
Name Community Edition Enterprise Edition Comment

db.createNodeKey()

No

Yes

Removed Replaced by OPTIONS of the CREATE CONSTRAINT ... IS NODE KEY command.

db.constraints()

Yes

Yes

Removed Replaced by SHOW CONSTRAINTS.

db.createUniquePropertyConstraint()

Yes

Yes

Removed Replaced by OPTIONS of the CREATE CONSTRAINT ... IS UNIQUE command.

db.createIndex()

Yes

Yes

Removed Replaced by OPTIONS of the CREATE INDEX command.

db.indexes()

Yes

Yes

Removed Replaced by SHOW INDEXES.

db.indexDetails()

Yes

Yes

Removed Replaced by SHOW INDEXES YIELD *.

db.schemaStatements()

Yes

Yes

Removed Replaced by SHOW INDEXES YIELD * and SHOW CONSTRAINTS YIELD *.

dbms.procedures()

Yes

Yes

Removed Replaced by SHOW PROCEDURES.

dbms.functions()

Yes

Yes

Removed Replaced by SHOW FUNCTIONS.

dbms.killQueries()

Yes

Yes

Removed Replaced by TERMINATE TRANSACTIONS.

dbms.killQuery()

Yes

Yes

Removed Replaced by TERMINATE TRANSACTIONS.

dbms.killTransaction()

Yes

Yes

Removed Replaced by TERMINATE TRANSACTIONS.

dbms.killTransactions()

Yes

Yes

Removed Replaced by TERMINATE TRANSACTIONS.

dbms.listQueries()

Yes

Yes

Removed Replaced by SHOW TRANSACTIONS.

dbms.listTransactions()

Yes

Yes

Removed Replaced by SHOW TRANSACTIONS.

dbms.security.createUser()

Yes

Yes

Removed Replaced by CREATE USER.

dbms.security.deleteUser()

Yes

Yes

Removed Replaced by DROP USER.

dbms.security.suspendUser()

No

Yes

Removed Replaced by ALTER USER.

dbms.security.activateUser()

No

Yes

Removed Replaced by ALTER USER.

dbms.security.changeUserPassword()

No

Yes

Removed Replaced by ALTER USER.

dbms.security.changePassword()

Yes

Yes

Removed Replaced by ALTER CURRENT USER SET PASSWORD.

dbms.security.createRole()

No

Yes

Removed Replaced by CREATE ROLE.

dbms.security.deleteRole()

No

Yes

Removed Replaced by DROP ROLE.

dbms.security.addRoleToUser()

No

Yes

Removed Replaced by GRANT ROLE.

dbms.security.removeRoleFromUser()

No

Yes

Removed Replaced by REVOKE ROLE.

dbms.security.listUsers()

Yes

Yes

Removed Replaced by SHOW USERS.

dbms.security.listRolesForUser()

No

Yes

Removed Replaced by SHOW USERS.

dbms.security.listRoles()

No

Yes

Removed Replaced by SHOW ROLES.

dbms.security.listUsersForRole()

No

Yes

Removed Replaced by SHOW ROLES WITH USERS.

db.index.fulltext.createNodeIndex()

Yes

Yes

Removed Replaced by CREATE FULLTEXT INDEX …​.

db.index.fulltext.createRelationshipIndex()

Yes

Yes

Removed Replaced by CREATE FULLTEXT INDEX …​.

db.index.fulltext.drop()

Yes

Yes

Removed Replaced by DROP INDEX …​.