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:
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.
5 Replies
I wanted to provide an update.
I found an example that seemed relevant, but it doesn't seem to work.
Here is the example from the TinkerPop documentation:
I adjusted my query to match it:
The new error is:
The client logs the following bytecode:
What version of Neptune are you using? anyone with @neptune know what's happening here?
I don't recognize that error at all
This is for version 1.2.1.0 of Neptune.
The latest error seems like it might be a problem with gremlin-go, since the bytecode has memory addresses, instead of select queries.
Hi @trevorkropp
Small issue in
MergeE
part, for me works
<-g.
MergeV(map[interface{}]interface{}{
gremlingo.T.Label: "thing",
"name": "ABC123",
}).As("ABC123").
MergeV(map[interface{}]interface{}{
gremlingo.T.Label: "thing",
"name": "ABC456",
}).As("ABC456").
MergeE(map[interface{}]interface{}{
gremlingo.T.Label: "connect",
gremlingo.Direction.Out: gremlingo.Merge.OutV,
gremlingo.Direction.In: gremlingo.Merge.InV,
}).
Option(gremlingo.Merge.OutV, gremlingo.T__.Select("ABC123")).
Option(gremlingo.Merge.InV, gremlingo.T__.Select("ABC456")).
Iterate()
@valentyn_kahamlyk Thanks, that worked! It seems using the right constants is the way to do it.