我在我的一个应用程序中使用 neo4j。
如果找到值,则运行查询后,result.Next()返回一个bool
var matches []int
fmt.Println(result.Next(), "<== result NEXT ???") // 👈 this prints true
if result.Next() {
// 👇 for some reason this block won't run!
fmt.Println("Assigning the values to the var")
matches = result.Record().Values()[0].([]int)
fmt.Println("Matches found", matches)
}
我非常感谢您的帮助,坚持了几个小时
慕桂英3389331
相关分类