apoc.schema.relationship.indexExists

Details

Syntax

apoc.schema.relationship.indexExists(type, propertyName)

Description

Returns a BOOLEAN depending on whether or not an index exists for the given RELATIONSHIP type with the given property names.

Arguments

Name

Type

Description

type

STRING

The relationship type to check for an index on.

propertyName

LIST<STRING>

The property names to check for an index on.

Returns

BOOLEAN

This function is not considered safe to run from multiple threads. It is therefore not supported by the parallel runtime (introduced in Neo4j 5.13). For more information, see the Cypher Manual → Parallel runtime.