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

edge modification / dropping #31

Open flashpixx opened 3 years ago

flashpixx commented 3 years ago

Hello,

I'm using based on #20 the 1.1.2 version, but it seems to be that also modification / dropping support for edges (on the mode.Edge struct) is missing. For dropping edges by ID I'm using:

client.ExecuteStringQuery(fmt.Sprintf("g.E('%v').drop()"))

And I would be nice, if the call AddProperty could be added to the model.Edge{} struct as well.

Thanks