Hi
I want remove some record inside a collection, I try with group by but I cant get the original structure of the collection, I´m not sure if I need to do a ForAll of this group by and return the first record of each grouped record
I also try distinct function but doesn´t do that we need.
The original collection is like this:
[
{ date: 2021-06-08, title: A1 },
{ date: 2021-06-07, title: A2 },
{ date: 2021-06-07, title: A3 },
{ date: 2021-06-04, title: A4 },
]
And I need the get something like this (it´s like a a SQL group by date):
[
{ date: 2021-06-08, title: A1 },
{ date: 2021-06-07, title: A2 },
{ date: 2021-06-04, title: A4 },
]
thanks a lot!