northwesternmutual / grammes

A Go package built to communicate with Apache TinkerPop™ Graph computing framework using Gremlin; a graph traversal language used by graph databases such as JanusGraph®, MS Cosmos DB, AWS Neptune, and DataStax® Enterprise Graph.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

propertymap unmarshal to go map

flashpixx opened this issue · comments

Hello,

I try to query my graph and I would like to get the full property value back as a go map without iterating:

result, err := client.ExecuteQuery(grammes.Traversal().V().HasLabel("User").Has("sid", s).PropertyMap())
if err != nil {
    return nil, err
}

var x : map["string"]interface{}
x = grammes.Unmerashaling????(result)

The query returns a single vertex and I would like to get all properties in a map. Thanks