Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adisD opened this issue May 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@adisD
Copy link

adisD commented May 16, 2022

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

@adisD adisD added the bug Something isn't working label May 16, 2022
@nikitawootten
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants