I have a query that returns a set of vertices and I want to get the Max value of the Primary Keys which in this case should be “7”. Here’s a list of the vertices:
I tried using:
MaxAccum<UINT> @@maxAccum;
But couldn’t get the correct syntax so I ended up with this:
However, the value of @@maxAccum = 3 which doesnt make sense to me. Can someone please explain why its “3” and not “7” as expected?
Thank you
Here’s the Json returned from this query:
[
{
“@@maxAccum”: “3”
},
{
“Items”: [
{
“v_id”: “7”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Vintage Old Flatbed”,
“description”: “”
}
},
{
“v_id”: “2”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Beached 67 150”,
“description”: “”
}
},
{
“v_id”: “4”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Ford in the Fog”,
“description”: “”
}
},
{
“v_id”: “5”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Kicks on Route 66”,
“description”: “”
}
},
{
“v_id”: “3”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Dog in Truck”,
“description”: “”
}
},
{
“v_id”: “6”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “Farmhand”,
“description”: “”
}
},
{
“v_id”: “1”,
“v_type”: “ConceptItem”,
“attributes”: {
“name”: “58 Ford Truck in Desert”,
“description”: “”
}
}
]
}
]