# Go

**URL:** https://community.neo4j.com/c/drivers-stacks/go/34.md

[Latest](https://community.neo4j.com/latest.md) · [Categories](https://community.neo4j.com/categories.md) · [Tags](https://community.neo4j.com/tags.md)

---

## [About the Go category](https://community.neo4j.com/t/about-the-go-category/45)

<div class="topic-metadata">

**Author:** [@florent\_biville](https://community.neo4j.com/u/florent_biville)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 4:02pm UTC](https://community.neo4j.com/t/about-the-go-category/45 "2018-06-11T16:02:12Z")

</div>

Go is the latest addition to the official Neo4j Drivers family. Historically based on the (now abandoned) C connector Seabolt, the Go driver was fully rewritten in 2020 and remains now 100% pure Go. GitHub Repository …

---

## [Efficient Search Across Elasticsearch and Neo4j Without Pulling Large Result Sets](https://community.neo4j.com/t/efficient-search-across-elasticsearch-and-neo4j-without-pulling-large-result-sets/76179)

<div class="topic-metadata">

**Author:** [@brryo6801](https://community.neo4j.com/u/brryo6801)\
**Replies:** 3\
**Last updated:** [December 31, 2025, 2:49pm UTC](https://community.neo4j.com/t/efficient-search-across-elasticsearch-and-neo4j-without-pulling-large-result-sets/76179 "2025-12-31T14:49:56Z")

</div>

i got : Elasticsearch stores most of the searchable / document-like data (text fields, city, etc.) Neo4j stores relationships and some entity attributes (e.g., gender, graph connections) Each entity exists in bo…

---

## [Connectivity error in neo4j + go lang challenge](https://community.neo4j.com/t/connectivity-error-in-neo4j-go-lang-challenge/72573)

<div class="topic-metadata">

**Author:** [@zeyadatef25](https://community.neo4j.com/u/zeyadatef25)\
**Replies:** 8\
**Last updated:** [February 20, 2025, 8:23pm UTC](https://community.neo4j.com/t/connectivity-error-in-neo4j-go-lang-challenge/72573 "2025-02-20T20:23:23Z")

</div>

I tried to make the challenge but i found a connectivity error in the course database and i can't take the certificate because of this it is so annoying

---

## [Mocking DriverWithContext](https://community.neo4j.com/t/mocking-driverwithcontext/67924)

<div class="topic-metadata">

**Author:** [@wormlb](https://community.neo4j.com/u/wormlb)\
**Replies:** 1\
**Last updated:** [May 14, 2024, 4:09pm UTC](https://community.neo4j.com/t/mocking-driverwithcontext/67924 "2024-05-14T16:09:44Z")

</div>

Hi, I am trying to use GoMock to mock the DriverWithContext functionality. How ever when I generate the mock it includes the following import : auth "github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/auth" This obvio…

---

## [How to renew the route table after i create new database for golang sdk environment](https://community.neo4j.com/t/how-to-renew-the-route-table-after-i-create-new-database-for-golang-sdk-environment/67541)

<div class="topic-metadata">

**Author:** [@0xdoomxy](https://community.neo4j.com/u/0xdoomxy)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 3:33pm UTC](https://community.neo4j.com/t/how-to-renew-the-route-table-after-i-create-new-database-for-golang-sdk-environment/67541 "2024-04-24T15:33:02Z")

</div>

Version neo4j 5.19.0 golang SDK (github.com/neo4j/neo4j-go-driver/v5 v5.18.0） Sight i need a new neo4j database to insert the csv data to neo4j using the apoc extend package The pseudocode is as follows driverWithC…

---

## [Working with Complex Data Structs](https://community.neo4j.com/t/working-with-complex-data-structs/65069)

<div class="topic-metadata">

**Author:** [@nazevedo3](https://community.neo4j.com/u/nazevedo3)\
**Replies:** 3\
**Last updated:** [November 24, 2023, 8:49pm UTC](https://community.neo4j.com/t/working-with-complex-data-structs/65069 "2023-11-24T20:49:46Z")

</div>

I've looked at a bunch of examples in Go showing how to read and write data to a neo4j db, however, those examples are working with pretty basic data/queries. Is there a more "Go" way of inserting data that comes in a …

---

## [Facing connectivity issue with neo4j and go language](https://community.neo4j.com/t/facing-connectivity-issue-with-neo4j-and-go-language/64659)

<div class="topic-metadata">

**Author:** [@ksadasiva2003](https://community.neo4j.com/u/ksadasiva2003)\
**Replies:** 6\
**Last updated:** [October 25, 2023, 1:29pm UTC](https://community.neo4j.com/t/facing-connectivity-issue-with-neo4j-and-go-language/64659 "2023-10-25T13:29:32Z")

</div>

Hi All, Actually my neo4j db is in client vm. So i am using certs mentioned in neo4j.conf to get connection while doing that getting below error. Since i am trying to connect with neo4j which is at client vm i dont kno…

---

## [ExecuteRead() Returning nothing while cypher in browser work](https://community.neo4j.com/t/executeread-returning-nothing-while-cypher-in-browser-work/63827)

<div class="topic-metadata">

**Author:** [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Replies:** 4\
**Last updated:** [August 21, 2023, 11:37am UTC](https://community.neo4j.com/t/executeread-returning-nothing-while-cypher-in-browser-work/63827 "2023-08-21T11:37:15Z")

</div>

query := \`MATCH (n) RETURN n\` session := driver.NewSession(ctx, neo4j.SessionConfig{DatabaseName: "test"}) defer session.Close(ctx) courses, err := session.ExecuteRead(ctx, func(tx neo4j.ManagedTransaction) (inte…

---

## [Cannot connect to local DBMS with golang driver](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042)

<div class="topic-metadata">

**Author:** [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Replies:** 5\
**Last updated:** [June 28, 2023, 8:59am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042 "2023-06-28T08:59:47Z")

</div>

I install Neo4j Desktop and it already have example project and db, when i try to connect from golang driver, it said ConnectivityError: Unable to retrieve routing table from localhost:7474: serv er responded with unsupp…

---

## [Verify cypher without db](https://community.neo4j.com/t/verify-cypher-without-db/62436)

<div class="topic-metadata">

**Author:** [@marius.bakkeli](https://community.neo4j.com/u/marius.bakkeli)\
**Replies:** 4\
**Last updated:** [May 15, 2023, 8:38am UTC](https://community.neo4j.com/t/verify-cypher-without-db/62436 "2023-05-15T08:38:54Z")

</div>

Can the go driver verify cyphers without a connection to a database? I'm looking for syntax errors in the cypher string and errors where for instance typed variables are not used. I'm storing cyphers for later use and …

---

## [Database connection success even with wrong credential](https://community.neo4j.com/t/database-connection-success-even-with-wrong-credential/62305)

<div class="topic-metadata">

**Author:** [@ri8ika](https://community.neo4j.com/u/ri8ika)\
**Replies:** 4\
**Last updated:** [May 2, 2023, 1:38pm UTC](https://community.neo4j.com/t/database-connection-success-even-with-wrong-credential/62305 "2023-05-02T13:38:49Z")

</div>

I tried both v4 and v5 version of the driver but the connection succeeded even while I provided wrong credential: driver, err := neo4j.NewDriverWithContext(uri, neo4j.BasicAuth("wrongusername", "wrongpassword", "")) if …

---

## [An example of statement interface?](https://community.neo4j.com/t/an-example-of-statement-interface/62241)

<div class="topic-metadata">

**Author:** [@ri8ika](https://community.neo4j.com/u/ri8ika)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 8:52pm UTC](https://community.neo4j.com/t/an-example-of-statement-interface/62241 "2023-04-26T20:52:08Z")

</div>

I am looking for go driver api: neo4j package - github.com/neo4j/neo4j-go-driver/neo4j - Go Packages But couldn't understand how to use them. Can you please give me an example usage for eg. using type Statement interfac…

---

## [Apoc trigger parametrized query](https://community.neo4j.com/t/apoc-trigger-parametrized-query/53121)

<div class="topic-metadata">

**Author:** [@notdodo](https://community.neo4j.com/u/notdodo)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 2:40pm UTC](https://community.neo4j.com/t/apoc-trigger-parametrized-query/53121 "2022-03-16T14:40:34Z")

</div>

I've opened this issue because I think that the Run function does not perform the parameter substitution but I'm not sure if the code that I wrote is wrong or the problem is in the driver...

---

## [Dynamically filling in label in a query gives an error](https://community.neo4j.com/t/dynamically-filling-in-label-in-a-query-gives-an-error/50631)

<div class="topic-metadata">

**Author:** [@adamsits](https://community.neo4j.com/u/adamsits)\
**Replies:** 2\
**Last updated:** [January 18, 2022, 5:22pm UTC](https://community.neo4j.com/t/dynamically-filling-in-label-in-a-query-gives-an-error/50631 "2022-01-18T17:22:09Z")

</div>

In the query below I am passing in two strings, $node and $targetlabel. The first one works, the second creates an error. query := \`MATCH ({name:$node})-\[e\]-(n:$targetlabel) RETURN DISTINCT n.name as name, n.detail as…

---

## [Neo4j go driver with bolt protocol version 1](https://community.neo4j.com/t/neo4j-go-driver-with-bolt-protocol-version-1/49313)

<div class="topic-metadata">

**Author:** [@chetan777in](https://community.neo4j.com/u/chetan777in)\
**Replies:** 2\
**Last updated:** [December 26, 2021, 12:18pm UTC](https://community.neo4j.com/t/neo4j-go-driver-with-bolt-protocol-version-1/49313 "2021-12-26T12:18:39Z")

</div>

We are having a graph database which supports only bolt protocol version 1. I am trying to use the GitHub - neo4j/neo4j-go-driver: Neo4j Bolt Driver for Go for my use case(building a cli) But it gives error as : Server …

---

## [How can I view the actual query that is sent from the neo4j-go driver?](https://community.neo4j.com/t/how-can-i-view-the-actual-query-that-is-sent-from-the-neo4j-go-driver/49306)

<div class="topic-metadata">

**Author:** [@adamsits](https://community.neo4j.com/u/adamsits)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 9:11am UTC](https://community.neo4j.com/t/how-can-i-view-the-actual-query-that-is-sent-from-the-neo4j-go-driver/49306 "2021-12-21T09:11:12Z")

</div>

I am working on a query that as far as I can tell should work. However, it's not. I need to see the actual query that's hitting neo4j. Is that possible? Currently using 4.4 - GitHub - neo4j/neo4j-go-driver: Neo4j Bolt Dr…

---

## [Error not returning to the Golang driver](https://community.neo4j.com/t/error-not-returning-to-the-golang-driver/43210)

<div class="topic-metadata">

**Author:** [@renatospaka](https://community.neo4j.com/u/renatospaka)\
**Replies:** 7\
**Last updated:** [August 25, 2021, 7:50am UTC](https://community.neo4j.com/t/error-not-returning-to-the-golang-driver/43210 "2021-08-25T07:50:16Z")

</div>

Hello folks. I have this method to delete a Person from my Graph: func (d FamilyRepositoryNeo4j) DeletePerson(id string) error { cypher := \` MATCH (one:Person {uuid: $uuid})-\[dBirth:BIRTH\]-\>(:Day) DELETE on…

---

## [How to check if driver connected to neo4j on startup?](https://community.neo4j.com/t/how-to-check-if-driver-connected-to-neo4j-on-startup/2341)

<div class="topic-metadata">

**Author:** [@MattJBrowning](https://community.neo4j.com/u/MattJBrowning)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 7:39pm UTC](https://community.neo4j.com/t/how-to-check-if-driver-connected-to-neo4j-on-startup/2341 "2021-07-16T19:39:59Z")

</div>

Hello, Was wondering if there was a way to check to see if the driver connected to the neo4j server when the driver was initialized, that way I can throw an error or panic when the application cannot connect to the serv…

---

## [Tried using official GO driver in production - SOOO Painful!](https://community.neo4j.com/t/tried-using-official-go-driver-in-production-sooo-painful/5275)

<div class="topic-metadata">

**Author:** [@jeremy](https://community.neo4j.com/u/jeremy)\
**Replies:** 14\
**Last updated:** [July 16, 2021, 7:24pm UTC](https://community.neo4j.com/t/tried-using-official-go-driver-in-production-sooo-painful/5275 "2021-07-16T19:24:57Z")

</div>

Why on earth has the Go Driver been linked to Seabolt / so painful. We have even tried the static link approach however that is broken as it required dependencies on CLIB and then versions get misaligned . This approach…

---

## ["gopkg.in/cq.v1" with NEO4J 4.x](https://community.neo4j.com/t/gopkg-in-cq-v1-with-neo4j-4-x/14035)

<div class="topic-metadata">

**Author:** [@jeremy](https://community.neo4j.com/u/jeremy)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 7:22pm UTC](https://community.neo4j.com/t/gopkg-in-cq-v1-with-neo4j-4-x/14035 "2021-07-16T19:22:08Z")

</div>

Has anyone been able to get the cq driver to connect/run with the latest 4.x of NEO4J ? We moved to this driver away from the NEO Seabolt as it was more reliable and easier for production deploys.

---

## [Golang - converting maps to strong type](https://community.neo4j.com/t/golang-converting-maps-to-strong-type/14741)

<div class="topic-metadata">

**Author:** [@jsmccrumb](https://community.neo4j.com/u/jsmccrumb)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 7:19pm UTC](https://community.neo4j.com/t/golang-converting-maps-to-strong-type/14741 "2021-07-16T19:19:12Z")

</div>

Just wondering if anyone has some experience converting from a map\[string\]interface{} to a declared type? i.e. in Go if I have: type Person struct { name string age int64 } if I run this query: MATCH (p:Perso…

---

## [Query logging missing with new Golang-neo4j-driver 1.8](https://community.neo4j.com/t/query-logging-missing-with-new-golang-neo4j-driver-1-8/20581)

<div class="topic-metadata">

**Author:** [@visakh.girish9](https://community.neo4j.com/u/visakh.girish9)\
**Replies:** 3\
**Last updated:** [July 16, 2021, 7:15pm UTC](https://community.neo4j.com/t/query-logging-missing-with-new-golang-neo4j-driver-1-8/20581 "2021-07-16T19:15:26Z")

</div>

Hello, I'm using Neo4j 3.5.12-enterprise via Docker Image with Golang. Recently, I made an upgrade to the new Go Driver 1.8.0, from the older 1.7.4. The new go mod driver without any seabolt dependencies was a sight for…

---

## [Testing Neo4j using GOlang](https://community.neo4j.com/t/testing-neo4j-using-golang/25431)

<div class="topic-metadata">

**Author:** [@boris.bakman](https://community.neo4j.com/u/boris.bakman)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 7:14pm UTC](https://community.neo4j.com/t/testing-neo4j-using-golang/25431 "2021-07-16T19:14:00Z")

</div>

Hi everybody, I'm using the official neo4j-go-driver. One thing is bothering me - lack of testing libraries. Does anybody familiar with something relevant regards? Thanks in advance, Boris

---

## [Install seabolt on ARM](https://community.neo4j.com/t/install-seabolt-on-arm/25274)

<div class="topic-metadata">

**Author:** [@eduardo.hofmann](https://community.neo4j.com/u/eduardo.hofmann)\
**Replies:** 3\
**Last updated:** [July 16, 2021, 7:08pm UTC](https://community.neo4j.com/t/install-seabolt-on-arm/25274 "2021-07-16T19:08:34Z")

</div>

Hi, Does anyone succeed to get Seabolt17 working in a raspberry pi 4? ubuntu@ubuntu:~$ sudo dpkg -i seabolt-1.7.4-Linux-ubuntu-18.04.deb dpkg: error processing archive seabolt-1.7.4-Linux-ubuntu-18.04.deb (--install):…

---

## [Issue with time format](https://community.neo4j.com/t/issue-with-time-format/16833)

<div class="topic-metadata">

**Author:** [@superbeeny](https://community.neo4j.com/u/superbeeny)\
**Replies:** 5\
**Last updated:** [July 16, 2021, 7:01pm UTC](https://community.neo4j.com/t/issue-with-time-format/16833 "2021-07-16T19:01:55Z")

</div>

I have a small job that reconciles data in one store with a neo4j graph, everything runs swimmingly on laptop but when I move it to a container for execution I get the below error, does anyone have any ideas on where to …

---

## [Struggling with Transactions](https://community.neo4j.com/t/struggling-with-transactions/39509)

<div class="topic-metadata">

**Author:** [@renatospaka](https://community.neo4j.com/u/renatospaka)\
**Replies:** 7\
**Last updated:** [June 28, 2021, 8:39am UTC](https://community.neo4j.com/t/struggling-with-transactions/39509 "2021-06-28T08:39:30Z")

</div>

Hi, I am reading the Neo4j Go Driver Manual v4.2 and there is a session with a non-functional piece of code on page #23 I want to create an ACID transaction similar to the code above. Then I'm looking for a gist or G…

---

## [Neo4j/neo4j-go-driver - just not able to make this it build](https://community.neo4j.com/t/neo4j-neo4j-go-driver-just-not-able-to-make-this-it-build/36507)

<div class="topic-metadata">

**Author:** [@jeremy2](https://community.neo4j.com/u/jeremy2)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 3:06pm UTC](https://community.neo4j.com/t/neo4j-neo4j-go-driver-just-not-able-to-make-this-it-build/36507 "2021-04-08T15:06:15Z")

</div>

Just wondering has anyone got any success with this driver ? I've tried and tried to get v1/v4 versions working with no success. I've tried using the example @ Using Neo4j from Go - Developer Guides - yet that looks…

---

## [A Cypher DSL for Golang](https://community.neo4j.com/t/a-cypher-dsl-for-golang/34242)

<div class="topic-metadata">

**Author:** [@manhcuongbk56](https://community.neo4j.com/u/manhcuongbk56)\
**Replies:** 3\
**Last updated:** [February 25, 2021, 9:28am UTC](https://community.neo4j.com/t/a-cypher-dsl-for-golang/34242 "2021-02-25T09:28:24Z")

</div>

Hi all. I develop a cypher dsl on my own. It is pretty convenient to use. Example can be found in test\_cypher folder. Hope it can be helpful. Just give it a try. Here's git repository:

---

## [Running 2 docker containers and keep getting Connection refused errors from bolt](https://community.neo4j.com/t/running-2-docker-containers-and-keep-getting-connection-refused-errors-from-bolt/18364)

<div class="topic-metadata">

**Author:** [@ron](https://community.neo4j.com/u/ron)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 3:00pm UTC](https://community.neo4j.com/t/running-2-docker-containers-and-keep-getting-connection-refused-errors-from-bolt/18364 "2020-05-09T15:00:05Z")

</div>

Here is what the logs look like: Any help greatly appreciated.

---

## [Could not determine kind of name for C.CBytes in module gobolt](https://community.neo4j.com/t/could-not-determine-kind-of-name-for-c-cbytes-in-module-gobolt/18177)

<div class="topic-metadata">

**Author:** [@ron.gidron](https://community.neo4j.com/u/ron.gidron)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 8:12pm UTC](https://community.neo4j.com/t/could-not-determine-kind-of-name-for-c-cbytes-in-module-gobolt/18177 "2020-05-05T20:12:14Z")

</div>

I am feverishly trying to set up Seabolt and failing. have given up on trying to get it to work on my Mac and have moved onto an ubuntu box now - everything runs well until I run: go get github.com/neo4j/neo4j-go-driver…

[Next page](https://community.neo4j.com/c/drivers-stacks/go/34.md?page=1)
