Closed hsivakum closed 3 years ago
Hi @hsivakum This looks like you are accessing the same session/result/transaction instance from multiple Go routines. Only the driver "object" is safe to use from multiple Go routines. This applies to both 1.8 and 4.x branches and is by design. You should only keep instances of the driver object, all other type of objects should be kept local to the current thread.
Please use the 4.2.3 version of the driver instead of the 1.8 one, there is no reason to use the older one in terms of database server compatibility.
If you still have problems with the 4.2.3 version please open another issue with more example of how you use the driver.
Facing different errors while running a cypher to get an array of values from a collection of nodes running the same cypher in goroutine from s2s API channel, and calling from UI
Code Snippet ` result, err := repository.db.Run("match (person:Person{userId: $userId})-[follows:FOLLOWS]->(interest:Interest) return COLLECT(interest.name) as interests", map[string]interface{}{ "userId": userId, })
`
Expected behavior
Actual behavior
the error returned by neo4j go driver
Tried solutions as of now: