loopbackio / loopback-datasource-juggler

Connect Loopback to various Data Sources
http://www.loopback.io
Other
277 stars 364 forks source link

embedsMany count/destroyAll not working correctly #258

Open fabien opened 10 years ago

fabien commented 10 years ago

Due to their embedded nature, these need to be treated differently.

vanraizen commented 9 years ago

I also mentioned this when this functionality failed to work for me in #727 (plus different stuff)

Nautigsam commented 8 years ago

Hey, anything new about it? Count on embedded models still returns 0 in all cases.

josephlaw commented 8 years ago

LB always return 0 for Count on embedded models

jannyHou commented 8 years ago

Same as issue https://github.com/strongloop/loopback-datasource-juggler/issues/956 And https://github.com/strongloop/loopback-datasource-juggler/issues/251

antonlvovych commented 7 years ago

@fabien hi. any news?

Allan1 commented 7 years ago

+1

bitpod-io commented 6 years ago

Hi, Embeds many count returning the documents count in the embeded model. Something is going wrong in juggler query Query should be on Base model's embedded record . Instead its querying the related model's collection.