Neo4j - Is there a cypher query syntax to list (show) all indexes in DB?

前端 未结 6 1591
谎友^
谎友^ 2020-12-24 01:27

I\'m looking for something similar to the MySQL ( SHOW INDEXES ). I was able to get a list of indexes using py2neo in Python

graphDB = neo4j.GraphDatabaseS         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 02:18

    This doesn't quite answer your question (I +1'd jjaderberg's answer as well.)

    In py2neo there is some functionality for labels: http://book.py2neo.org/en/latest/schema/

    get_index(label) Fetch a list of indexed property keys for a label.

    FYI, in shell you can use the undocumented schema command.

提交回复
热议问题