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

Fail to run example #115

Open
mt324010 opened this issue Aug 8, 2022 · 1 comment
Open

Fail to run example #115

mt324010 opened this issue Aug 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mt324010
Copy link

mt324010 commented Aug 8, 2022

Bug Report:

I ran the example code, and got a panic
panic: failed to init gogm instance, failed to init indices, failed to verify all indexes and contraints, failed to verify indexes and constraints for db neo4j on db version 4+, failed to convert result to string array, result is nil

Expected Behavior

Current Behavior

Steps to Reproduce

Possible Solution

Environment

Value
Go Version 1.18
GoGM Version 2.3.6
Neo4J Version 4.4.5
Operating System Mac M1 chip

Would you be interested in tackling this issue

Yes / No

@mt324010 mt324010 added the bug Something isn't working label Aug 8, 2022
@lomoval
Copy link

lomoval commented Nov 30, 2022

Such error occurs if you try to initialize GOGM with VALIDATE_INDEX, but there are no constraints in Neo4j (clean Neo4j).
examples/example.go uses IndexStrategy: gogm.VALIDATE_INDEX.
Change VALIDATE_INDEX to IGNORE_INDEX or ASSERT_INDEX in config to init GOGM without errors.

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