Subh
08/24/2021, 9:03 AMSubh
08/24/2021, 9:08 AMclass Comments {
}
class Posts {
constructor(...args) {
super(...args)
this.comments = []
}
}
class Users {
constructor(...args) {
super(...args)
this.posts = []
}
}
Now on this if I want to do use cases like,
1. Search by post names
2. Search/filter by users
3. Search/filter posts by datesSubh
08/24/2021, 9:33 AMalbert
08/24/2021, 9:44 AMSubh
08/24/2021, 9:45 AMalbert
08/24/2021, 9:47 AMArray.find()
and Array.filter()
if you need to search through an array, but it is not an option for a million records.Subh
08/24/2021, 9:48 AMalbert
08/24/2021, 9:50 AMSubh
08/24/2021, 9:50 AMSubh
08/24/2021, 9:50 AMSubh
08/24/2021, 9:50 AMSubh
08/24/2021, 9:51 AMSubh
08/24/2021, 9:52 AMraRaRa
08/24/2021, 9:55 AMraRaRa
08/24/2021, 9:55 AMSubh
08/24/2021, 9:58 AMSubh
08/24/2021, 9:59 AMraRaRa
08/24/2021, 10:01 AMraRaRa
08/24/2021, 10:02 AMSubh
08/24/2021, 10:03 AMraRaRa
08/24/2021, 10:04 AMraRaRa
08/24/2021, 10:05 AMraRaRa
08/24/2021, 10:08 AMSubh
08/24/2021, 10:22 AMraRaRa
08/24/2021, 10:23 AMSubh
08/24/2021, 10:23 AMSubh
08/24/2021, 10:26 AMSubh
08/24/2021, 10:26 AMraRaRa
08/24/2021, 10:27 AMraRaRa
08/24/2021, 10:31 AM