Express js Mongoose | Lookup into Lookup Using Pipeline

preview_player
Показать описание
How to use lookup inside lookup in ExpressJs & Mongoose

#expressjs #php #mongo #mongodb #mongoose #lookup #developer #nodejs #backend
Рекомендации по теме
Комментарии
Автор

Great example, really helped me debug my code. Thank you

KevinDrongowskiSmart
Автор

Very Big thanks bro I search this query so many days ❤️❤️❤️👌

sureshadhi
Автор

Hi I need some help with my project.

I have two tables, locations and products. Locations will have the latitude and longitude etc

Products right now has a field which references one document in the location collection.

So I have to make a query based over the products based on the latitudes and longitudes.

I pass the latitude and longitude throught request paramters ( using express )

As product only has a reference to the location ( and this location has the latitudes and longitude, which I need to use to get products in a certain radius ( done using geoWithin or near ))

Can you help me in figuring out how to write this query?

Also thank you, your other videos have been really helpful !!

riebeck
Автор

how should we use $group in this ??,
its important pls tell..
I have task for this

amitnota
Автор

Thanks for this great and rare video. Btw, I want "id" instead "_id". Is there any way?

asifulhaquemridul
Автор

hi i have a issue with some same type of aggregation with lookup pipeline and match will u help me pls

shivShaktitech
Автор

Bro this is programming so uh should speak as well and one more thing zoom in ur screen

lifeisahighway