With graph databases becoming more and more common its useful if you’re familiar with at least one.

Untitled

Neo4j is great, you can run it as a docker container without much configuration.

However if you all need is a vector database you’re using a non-graph database.

<aside> ❗ If you wish to use Neo4j for anything commercial, use Dozerdb instead

</aside>

DozerDB

You get Neo4J Enterprise features in the comfort of a Community edition

docker run \\
    -itd \\
    -p 7474:7474 -p 7687:7687 \\
    --env NEO4J_AUTH=neo4j/096aefa1f03c4b91814138f28c49a1ef \\
    --name neo4j-dozer-gds \\
    --env NEO4J_apoc_export_file_enabled=true \\
    --env NEO4J_apoc_import_file_enabled=true \\
    --env NEO4J_apoc_import_file_use__neo4j__config=true \\
    graphstack/dozerdb:5.21.2

You can add -v /PLUGINS_FOLDER:/plugins if you wish to load custom plugins. Populate PLUGINS_FOLDER with your .jar files.

Untitled

Common operations

1. Remove item from property list

MATCH (n) SET n.entities = [item IN n.entities WHERE item <> 'Entity'] RETURN n

2. Check if element in list

MATCH (n) WHERE 'element' IN n.entities RETURN n

3. Append / Modify list

MATCH (n) WHERE n.insightID = 310753953 SET n.entities = n.entities + ["A", "B", "C"]