I couldn't find a good example for using the MergeE step without having the IDs of the vertices. I've tried different variations, but this is the current state of the query I am running:
var g *gremlingo.GraphTraversal// ...g.MergeV(map[interface{}]interface{}{ gremlingo.T.Label: "thing", "name": "ABC123",})// ...g.MergeE(map[interface{}]interface{}{ gremlingo.T.Label: "connect", gremlingo.Direction.From: gremlingo.T__.V().Has("thing", "name", "ABC123").Id(), gremlingo.Direction.To: gremlingo.T__.V().Has("thing", "name", "ABC456").Id(),})
var g *gremlingo.GraphTraversal// ...g.MergeV(map[interface{}]interface{}{ gremlingo.T.Label: "thing", "name": "ABC123",})// ...g.MergeE(map[interface{}]interface{}{ gremlingo.T.Label: "connect", gremlingo.Direction.From: gremlingo.T__.V().Has("thing", "name", "ABC123").Id(), gremlingo.Direction.To: gremlingo.T__.V().Has("thing", "name", "ABC456").Id(),})
The MergeV and the MergeE are being combined in a single query. The output from Neptune is the following:
Does anyone know what this error means? Additionally, I'm pretty sure there's something wrong with my query, but I can't seem to figure it out. If anyone knows what the problem is, please let me know.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
AT
Apache TinkerPop
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.