馃挜 [DevOps] Neo4j Add Docu For Important Commands
Created by: Tirokk
馃挜 DevOps Ticket
Neo4j add docu for important commands to neo4j/README.md
.
Documantation
Have a look into file backend/src/db/migrate/store.js
.
Here happens the magic.
Show Indexes And Contraints
# in browser command line
# show all indexes and contraints
$ :schema
# show all indexes
$ CALL db.indexes();
# show all contraints
$ CALL db.constraints();
Add And Drop Indexes And Contraints
# in browser command line
# create indexes
$ CALL db.index.fulltext.createNodeIndex("post_fulltext_search",["Post"],["title", "content"]);
$ CALL db.index.fulltext.createNodeIndex("user_fulltext_search",["User"],["name", "slug"]);
$ CALL db.index.fulltext.createNodeIndex("tag_fulltext_search",["Tag"],["id"]);
# drop all indexes and contraints
$ CALL apoc.schema.assert({},{},true) YIELD label, key RETURN * ;