breeze: how to filter collection in count condition -
i have class named a, has property b collection of class c, , want filter records of a.b.count > 0, below tried queries:
breeze.predicate.create("b().length", ">", 0); breeze.predicate.create("b()[0]", "!=", null); breeze.predicate.create("b()","all","length", ">", 0);
i got error:typeerror: this._fnnode1 null
i want know right way filter records.
i don't believe breeze supports aggregates yet, can't use count() in query. remember breeze predicate being sent server evaluation , won't know javascript properties .length.
it looks there way want described in documentation:
http://www.getbreezenow.com/documentation/querying-depth
take @ getting count section.
hope helps.
Comments
Post a Comment