Skip to content

Neo4j

The Testcontainers module for Neo4j, the leading graph platform.

Adding this module to your project dependencies

Please run the following command to add the Neo4j module to your Go dependencies:

go get github.com/testcontainers/testcontainers-go/modules/neo4j

Usage example

Running Neo4j as a single-instance server, with the APOC plugin enabled:

container, err := neo4j.StartContainer(ctx,
    neo4j.WithAdminPassword(testPassword),
    neo4j.WithLabsPlugin(neo4j.Apoc),
    neo4j.WithNeo4jSetting("dbms.tx_log.rotation.size", "42M"),
)