apoc.cypher.runSchema

Procedure

apoc.cypher.runSchema(statement STRING, params MAP<STRING, ANY>) - runs the given 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 FOR (w:Test) REQUIRE w.baz IS UNIQUE',{})