z5labs/gogm

sess.QueryRaw(ctx, "CALL db.constraints", nil) verifyAllIndexesAndConstraintsV4

adisD opened this issue · 1 comments

adisD commented

Hello

I need some help in understanding why ess.QueryRaw(ctx, "CALL db.constraints", nil) fails. I am testing example.go included in gogm.

Below are findings and background information

resultToStringArrV4(true, foundResult) returns error "result is null"

  1. config := gogm.Config{
    Host: "0.0.0.0",
    Port: 7687,
    Protocol: "neo4j",
    ...
    }

_gogm, err := gogm.New(&config, gogm.DefaultPrimaryKeyStrategy, &VertexA{}, &VertexB{}, &EdgeC{})

Environment

Value
Go Version 1.8
GoGM Version 2.3.3
Neo4J Version 4.4.5
mac monterey 12.3..1

Would you be interested in tackling this issue

Yes

So, resultToStringArr will error out if it is passed a nil value. Have you tried running the same query on the database using neo4j's web frontend? This may be a stretch, but you may want to try CALL db.constraints() instead of CALL db.constraints.