apoc.schema.node.indexExistsFunction
| 
 | 
| Syntax | 
 | ||
| Description | Returns a  | ||
| Arguments | Name | Type | Description | 
| 
 | 
 | The node label to check for an index on. | |
| 
 | 
 | The property names to check for an index on. | |
| Returns | 
 | ||
Usage Examples
The examples in this section are based on a database that has applied the following constraints:
CREATE CONSTRAINT personName FOR (person:Person)
REQUIRE person.name IS UNIQUE;
CREATE CONSTRAINT userId FOR (user:User)
REQUIRE user.id IS UNIQUE;
CREATE INDEX personCity FOR (person:Person)
ON (person.city);RETURN apoc.schema.node.indexExists("Person", ["name"]) AS output;| output | 
|---|
| TRUE | 
RETURN apoc.schema.node.indexExists("Person", ["city"]) AS output;| output | 
|---|
| TRUE |