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

_like doesn't work anymore? #1550

Open
mentor-27 opened this issue May 29, 2024 · 4 comments
Open

_like doesn't work anymore? #1550

mentor-27 opened this issue May 29, 2024 · 4 comments

Comments

@mentor-27
Copy link

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

@eobeans
Copy link

eobeans commented Jul 4, 2024

Version 1.0.0 beta. 1 does not support this feature, please use version 0.17.0

@johnlindquist
Copy link

@eobeans Is there some sort of workaround in 1.0.0? Or is it planned?

@BigSamu
Copy link

BigSamu commented Dec 5, 2024

+1

@larhou
Copy link

larhou commented Jan 5, 2025

+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

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

5 participants