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
@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.
Most helpful comment
Same as issue https://github.com/strongloop/loopback-datasource-juggler/issues/956
And
https://github.com/strongloop/loopback-datasource-juggler/issues/251