apoc.cypher.runSchema

Details

Syntax

apoc.cypher.runSchema(statement, params) :: (value)

Description

Runs the given query schema statement with the given parameters.

Input arguments

Name

Type

Description

statement

STRING

The Cypher schema statement to run.

params

MAP

The parameters for the given Cypher statement.

Return arguments

Name

Type

Description

value

MAP

The result returned from the Cypher statement.

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',{})