techniq/odata-query

Support empty `any()` operator

techniq opened this issue · 5 comments

Spec

The any operator without an argument returns true if the collection is not empty.

This would be a breaking change from how we currently handle this

One workaround is to do something like

SomeCollection: {
  any: { Id: { gt: 0 } }
}

@techniq Any tentative plan to support this?

@Sayan751 no plans myself. I'm not actively developing this project anymore (just maintaining) as none of my current projects use OData (I've been using GraphQL).

@techniq That's a pity 😢 In that case, I will try to work on this issue in my free time.

On a different note, during my last PR, I noticed that the build script for this package, as well as the babel dependencies are quite old (actually the build script does not work on my windows machine). Do you mind if I update that as well?

@Sayan751 I saw that in your last PR and rolled it back. That would be great if you could update those.

I've recently starting using tsdx for my non-app projects (else I use create react app / gatsby / etc). Not sure you would want to bring Typescript into the project, but if you would, tsdx might be a good solution to manage the build/etc.