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

conditional operators doesn't work #1536

Open
bockster6669 opened this issue Apr 5, 2024 · 1 comment
Open

conditional operators doesn't work #1536

bockster6669 opened this issue Apr 5, 2024 · 1 comment

Comments

@bockster6669
Copy link

When I use _gte and _lte the query doesn't respond with the correct data. If I use them separately, they works, but if I apply something like "carList?price_gte=1000&price_lte=5000" it doesnt respond with the correct data

@rkdarling898
Copy link

I know this is a bit late but I dug into this and it has to do with the full url not being parsed.
In my case the get route was only taking in the first parameter and causing the result to be only that.
After a bit too long, I just wrapped the url in quotations and it worked just fine.

Example: curl "http://localhost:3000/cars?price_gte=900&price_lte=5000"

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