Merge index?

Is there a way to only create an index if it doesn't already exist to avoid a potential error (when it already exists - or vis-versa)? I'm thinking of something like MERGE INDEX FOR (x:Label) ON (x.foo)

see apoc.schema.assert http://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/indexes/schema-index-operations/

1 Like