I am using gremlingo to write golang query to upsert value when match a vertice and replace this value with single cardinality so that it will not append value that is accepted as default of list in neptune, why are they doing list by default.
The following command runs into error
g.MergeV(map[interface{}]interface{}{ gremlingo.T.Label: "User", "email": "[email protected]", }).Option(gremlingo.Merge.onMatch, map[interface{}]interface{}{"email": "[email protected]",}, gremlingo.Cardinality.Single).Id().Next()
2024/05/05 07:16:56 Error occurred during operation gremlinServerWSProtocol.responseHandler(): 'E0502: error in read loop, error message '{code:87 message:{"code":"InternalFailureException","requestId":"361e50e3-3fe6-4cce-a29c-79b6c20523ca","detailedMessage":"Could not locate exact method given the supplied arguments: NeptuneGraphTraversal.option(Merge, LinkedHashMap, Cardinality)","message":"Could not locate exact method given the supplied arguments: NeptuneGraphTraversal.option(Merge, LinkedHashMap, Cardinality)"} attributes:map[]}'. statusCode: 87
This is what i learned from tinkerpop official doc https://tinkerpop.apache.org/docs/3.7.1/reference/#mergevertex-step
But golang gremlingo does not work, or I just did not use it properly
SuperHaoyu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.