samedi 18 avril 2015

Mongoose: sort and filter results from multiple collections

Let's say I have multiple collections containing data, now I want to search and filter data from all those collections, what would be the best way to do this?


Currently I need to run a query for each individual collection, then merge the results, filter them again, and reduce the length of the array depending on the limit.


Is there an easier way to do this?


Aucun commentaire:

Enregistrer un commentaire