- Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
This error seems to originate here
Line 207 in 0d6a465
records[i], err = redis.Values(result, nil) |
We're currently running a version from this commit 0d6a465.
This is pretty far from a reproducible example, but I'd appreciate any suggestions/advice here.
In terms of a more usable example, I've managed to see a similar error while running the sample code from the readme (below). Also running on the same version (0d6a465).
The error here is
redigo: unexpected type for Strings, got type []uint8
The code is essentially verbatim from the README, just added a print for the error:
func main() { conn, _ := redis.Dial("tcp", "0.0.0.0:6379") defer conn.Close() graph := rg.Graph{}.New("social", conn) john := rg.Node{ Label: "person", Properties: map[string]interface{}{ "name": "John Doe", "age": 33, "gender": "male", "status": "single", }, } graph.AddNode(&john) japan := rg.Node{ Label: "country", Properties: map[string]interface{}{ "name": "Japan", }, } graph.AddNode(&japan) edge := rg.Edge{ Source: &john, Relation: "visited", Destination: &japan, } graph.AddEdge(&edge) graph.Commit() query := `MATCH (p:person)-[v:visited]->(c:country) RETURN p.name, p.age, v.purpose, c.name` rs, err := graph.Query(query) fmt.Println(err) // ERROR is here rs.PrettyPrint() }
Metadata
Metadata
Assignees
Labels
No labels