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

[Question / Feature Request] Perform more complex search queries #16

Open
gciola opened this issue Aug 16, 2020 · 1 comment
Open

[Question / Feature Request] Perform more complex search queries #16

gciola opened this issue Aug 16, 2020 · 1 comment

Comments

@gciola
Copy link

gciola commented Aug 16, 2020

Hi SteinHq team!

I wonder if it is possible to make more complex queries using search{} feature?

I'm looking for a way to test if a value is "greater then" a field and "less then" another field.

Example:
https://api.steinhq.com/v1/storages/[my_sheet]?search={"startdate"<="2020-05-01","enddate">="2020-05-01" }

Thanks!

gciola

@shivensinha4
Copy link
Member

Hey, gciola!

That definitely seems reasonable. I've heard that suggestion numerous times, and I think it's time I implement it. There are a couple more details I'll need to figure out about the intended behaviour and corner cases before implementing, but things are a bit busy right now. I'll get back to it as soon as possible, though.

Sorry for the delay, and thanks for the suggestion!

sumartoyo added a commit to sumartoyo/Stein that referenced this issue Jan 18, 2021
…) query syntax.

refs SteinHQ#16

- Search is performed using pouchdb-selector-core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants