loopback-datasource-juggler
loopback-datasource-juggler copied to clipboard
embedsMany count/destroyAll not working correctly
Due to their embedded nature, these need to be treated differently.
I also mentioned this when this functionality failed to work for me in #727 (plus different stuff)
Hey, anything new about it? Count on embedded models still returns 0 in all cases.
LB always return 0 for Count on embedded models
Same as issue https://github.com/strongloop/loopback-datasource-juggler/issues/956 And https://github.com/strongloop/loopback-datasource-juggler/issues/251
@fabien hi. any news?
+1
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.