I am new to mongoose I don't really find any reference how mongoose populate
deals with findMany query having ref
for example I have a categories
collection and a products
collection as on product can be assigned to many categories that's why they exist in 2 different collections.
Now if I call findMany
method on categories
collection and also populate
with products
will mongoose execute per category find products ? or all referenced product ids will be collected and in one query all products will be queried like dataloader
do ?