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.
Apache License 2.0
125 stars 45 forks source link

propertymap unmarshal to go map #24

Open flashpixx opened 4 years ago

flashpixx commented 4 years ago

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