© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Apache TinkerPopAT
Apache TinkerPop•3y ago•
8 replies
trevorkropp

gremlin-go, MergeE, and Neptune

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:
E0502: error in read loop, error message '{code:87 message:{"code":"InternalFailureException","requestId":"<omitted>","detailedMessage":"null: .mergeE(LinkedHashMap)"} attributes:map[]}'. statusCode: 87
E0502: error in read loop, error message '{code:87 message:{"code":"InternalFailureException","requestId":"<omitted>","detailedMessage":"null: .mergeE(LinkedHashMap)"} attributes:map[]}'. statusCode: 87

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.
Apache TinkerPop banner
Apache TinkerPopJoin
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MergeE using the gremlin javascript client on AWS Neptune don't work
Apache TinkerPopATApache TinkerPop / questions
3y ago
AWS Neptune and gremlin-javascript versions
Apache TinkerPopATApache TinkerPop / questions
3y ago
Neptune, Gremlin Java & Bindings
Apache TinkerPopATApache TinkerPop / questions
13mo ago
Gremlin with AWS Neptune
Apache TinkerPopATApache TinkerPop / questions
2y ago