I have a data structure like the following being returned as an observable using Akita state management, but in essence its just like any other observable, if there is some way to do this in Akita even better but any pointers with rxjs would be great also.
{
title: "Cool project",
date: "12-09-2020 15:10:33"
events: [{
id: 1,
title: "Beer festival",
location: "Paris"
},{
id: 2,
title: "Fashion week",
location: "Dubai"
}]
}
I would like to perform some kind of filtering on the subarray of events and return the following as an observable also where I just
have the event I need having filtered by the ID but also to return the top level object properties like date
etc
{
title: "Cool project",
date: "12-09-2020 15:10:33"
event: {
id: 1,
title: "Beer festival",
location: "Paris"
}
}