I have a breeze query that ignore the predicate when query from the server. All the data is returned. After that, if I include the same predicate and query locally, the predicates are applied. Is this normal? my predicate and query looks like
var predicate = breeze.Predicate("active", "==", false) var query = new EntityQuery("Todos").where(predicate);
The URL sent to the server looks like http://localhost:8888/Items/GetItems?$filter=active%20eq%20false
and the method looks like
[HttpGet]
public IQuerable<Items> GetItems() {
return contextprovider.context.Items();
}
Is it possible to filter directly from the server and not having to load all and filter locally?
I was missing the [BreezeController]
tag on my controller.