Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection filter syntax #27

Open
beikov opened this issue Apr 7, 2021 · 0 comments
Open

Collection filter syntax #27

beikov opened this issue Apr 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@beikov
Copy link
Member

beikov commented Apr 7, 2021

Add support for the bracket notation to filter collections. Within the brackets, an implicit variable _ exists (that can be omitted) to access the current collection element for the filtering. A possible example is priceHistory[price < 10 and date > TIMESTAMP 2020-01-01] is not empty. Collection filtering produces a collection again. The filtering should only be possible when the DomainOperator is enabled for the collection type. The interpretation implementation is straight forward. The persistence implementation requires help from the developer as that is dependent on the backing storage. We could try to attach support metadata on the collection types.

@beikov beikov added the enhancement New feature or request label Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant