apoc.cypher.runSchema

Procedure APOC Core

apoc.cypher.runSchema(statement, params) yield value - executes query schema statement with the given parameters

Signature

apoc.cypher.runSchema(cypher :: STRING?, params :: MAP?) :: (value :: MAP?)

Input parameters

Name Type Default

cypher

STRING?

null

params

MAP?

null

Output parameters

Name Type

value

MAP?

Usage Examples

CALL apoc.cypher.runSchema('CREATE INDEX test FOR (w:Test) ON (w.$name)',{})

or

CALL apoc.cypher.runSchema('CREATE CONSTRAINT $name ON (w:Test) ASSERT w.baz IS UNIQUE',{})