Open Kubera2017 opened 3 years ago
Thanks for pointing out the v2
here, saved me some work.
I wasn't able to get your code to work exactly, but what's the VerticiesByQuery
method exactly? Do you mean to just run ExecuteQuery
here?
g := grammes.Traversal()
vertices, err := client.ExecuteQuery(g.V())
if err != nil {
log.Fatal("Couldn't gather vertices", err.Error())
}
for _, vertex := range vertices {
fmt.Println(string(vertex))
}
seems to work just fine.
That's good that it works, but VerticesByQuery returns array of vertices already []model.Vertex, but ExecuteQuery returns raw result. This means you will unable to use the library API. https://github.com/northwesternmutual/grammes/blob/a0883ed30fe8f10f3c58ed9ff80849c029cf92c9/manager/getvertex.go#L79 https://github.com/northwesternmutual/grammes/blob/a0883ed30fe8f10f3c58ed9ff80849c029cf92c9/manager/query.go#L54
Hello, does this library support CosmosDB?
I tried, actually it needs GraphSONSerializersV2d0 instead of V3, I used grammes.WithGremlinVersion(2) for that, vertices are added, but retreival queries don't work, it returns empty labels and IDs. This is test code: