Closed h3rmanj closed 3 years ago
Sometimes you just want to know if a sublist has any, no matter what.
Users?$Filter=Friends/any()
Right now, you have to provide a function to .Any, forcing you to do
.Any
.For<User>("Users") .ByList() .Filter((u, _, o) => o.Any(u.Friends, f => true))
that generates
Users?$Filter=Friends/any(f:true)
Which technically works (I think), but it would be nice if the 2nd argument func in .Any was optional.
Sometimes you just want to know if a sublist has any, no matter what.
Right now, you have to provide a function to
.Any
, forcing you to dothat generates
Which technically works (I think), but it would be nice if the 2nd argument func in
.Any
was optional.