mardi 20 septembre 2016

Laravel and mongodb aggregation

{ "_id" : ObjectId("57e0e23b06cb170c38001f32"), "rss_feed_id" : "57e0e1ea06cb170c38001f17", news_date" : "2016-09-12", "company_id" : ObjectId("57e0e1f206cb170c38001f18") }

{ "_id" : ObjectId("57e0e1ea06cb170c38001f17"), "rss_feed_id" : "57e0e1ea06cb170c38001f17", news_date" : "2016-09-12", "company_id" : ObjectId("57e0e1f206cb170c38001f18") }

{ "_id" : ObjectId("57e0e23b06cb170c38001f40"), "rss_feed_id" : "57e0e1ea06cb170c38001f17", news_date" : "2016-09-12", "company_id" : ObjectId("57e0e20a06cb170c38001f24") }

This is my mongodb data set. I need to search details depends on company_id using wherein condition using aggregation framework.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire