I have the following gremlin query where I am querying multiple edges and then their accompanying verticies
outE('childSolution')
.inV()
.local(union(
identity()
.valueMap(true)
.project('solution')
,
outE('writtenBy')
.inV()
.valueMap(true)
.project('originator')
,
outE('childProblem')
.inV()
.valueMap(true)
.project('childProblem')
))
.fold()
.project('childSolutions')
I am getting back
"childSolutions": [
{ "solution" : { properties... }
},
{
"originator": { properties... }
}
]
what I'd like is
"childSolutions": [
{ "fullSolution : {
{ "solution" : { properties... }
},
{
"originator": { properties... }
}
},
{ "fullSolution : {
{ "solution" : { properties... }
},
{
"originator": { properties... }
}
}
]
Any help would be greatly appreciated