`_like` doesn't work anymore?
Is there any other way to implement filtering by some value if it matches the query phrase?
http://localhost:3000/posts?title_like=searchPhrase responds empty array but there are many matches in fact
Version 1.0.0 beta. 1 does not support this feature, please use version 0.17.0
@eobeans Is there some sort of workaround in 1.0.0? Or is it planned?
+1
+1
I am following a tutorial where some of the older features of json-server is used e.g. the search.
Here is what I did:
To install the v0.17.0 release of json-server and remove any existing version, follow these steps:
Uninstall the existing version of json-server:
npm uninstall -g json-server
Install the v0.17.0 version of json-server:
npm install -g [email protected]
These commands will uninstall any globally installed version of json-server and then install the v0.17.0 release globally.
The release page for v0.17.0 of json-server:
https://github.com/typicode/json-server/releases/tag/v0.17.0
Be aware of changes like how to start the server:
% json-server data/db.json --port 8000 -> % json-server --watch data/db.json --port 8000