When trying to add a query parameter with an operator like "?createdAt_like=1491402693000" and the JSON data contains null values, this error is thrown in node_modules/json-server/lib/server/router/plural.js:122:64. Any of those elementValue.toString() calls could throw if they are tested against null.
I also noticed there is probably no way to use _like or _ne with null as value because there's no way to distinguish it from the string "null".
When trying to add a query parameter with an operator like "?createdAt_like=1491402693000" and the JSON data contains null values, this error is thrown in
node_modules/json-server/lib/server/router/plural.js:122:64. Any of thoseelementValue.toString()calls could throw if they are tested againstnull.I also noticed there is probably no way to use _like or _ne with
nullas value because there's no way to distinguish it from the string"null".