I have the following entries with the type Observable<User[]>:
[{
"id": 1,
"name": "Testuser 1",
"projectAccess": Role,
}]
.json
Role {
id: string;
name:string;
}
so requirement is like to have an array where user is group-by role which i want to pass inside generic autocomplete component as group-entries
return data:
[{
manager, [{"1", "Frank"}, {"3", "Seba"}]
},
{employee, [{"2", "Simi"}]
},]
any help will be appreciated.Thank You