How can I group my data in ArangoDB with AQL? For example, my structure is:
[
{name: "karl", id: "1", timestamp: "11112"},
{name: "migele", id": "2", timestamp: "11114"},
{name: "martina", id": "2", timestamp: "11116"},
{name: "olivia", id": "3", timestamp: "11118"},
{name: "sasha", id": "4", timestamp: "111120"},
]
I want to receive the data with a unique ID and actual timestamp:
{
karl,
martina (because martina timestamp > migele timestamp and his ids is equals),
olivia,
sasha
}