loopback-datasource-juggler icon indicating copy to clipboard operation
loopback-datasource-juggler copied to clipboard

embedsMany count/destroyAll not working correctly

Open fabien opened this issue 10 years ago • 7 comments

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

fabien avatar Aug 26 '14 13:08 fabien

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

vanraizen avatar Oct 20 '15 20:10 vanraizen

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

Nautigsam avatar Jan 20 '16 09:01 Nautigsam

LB always return 0 for Count on embedded models

josephlaw avatar Jul 02 '16 17:07 josephlaw

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

jannyHou avatar Aug 12 '16 03:08 jannyHou

@fabien hi. any news?

antonlvovych avatar Nov 06 '16 20:11 antonlvovych

+1

Allan1 avatar May 07 '17 16:05 Allan1

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.

bitpod-io avatar May 03 '18 07:05 bitpod-io