Suppose I have an entity called Foo
, which has a list of Bars
. Each Bar
also has a field named isDeleted
to indicate whether it has been soft deleted. In my Javascript file using Breeze, I want to query for a specific Foo
and filter out the soft deleted Bars
. My attempt at achieving this was...
var query = breeze.EntityQuery.from('Foo')
.where('Id', '==', id).and('Bars.IsDeleted', '==', false)
.expand('Bars');
Unfortunately, this approach did not work. Can anyone guide me on how to accomplish this with Breeze? If the only solution is to create a method in the BreezeController
and use standard LINQ syntax, I am willing to do that. However, I would like to explore if there is a way to make it work directly with Breeze first.