-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
cannot filter on boolean type #412
Comments
I were able to reproduce this behaviour. It seems to be an issue with the filtering. There is a conditional check within See: json-server/src/server/router/plural.js Line 123 in b5eec15
I assume that this check should catch if (elementValue == null) {
return
} |
Should be good in |
Although the issue is closed, I fell into the same problem. To make "true" or "false" work, replace it with "1" (for true) and "0" (for false). As in the example:
should be:
|
Fixed in v1.0.0-beta.0 ;) |
database looks like below, and http://localhost:3000/todos/?completed=true is working, but http://localhost:3000/todos/?completed=false gets an empty array. I am using 0.9.0
The text was updated successfully, but these errors were encountered: