We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this server.json file:
{ "transactions" : [ { "id": 1, "description": "Desenvolvimento de site", "type": "income", "category": "Venda", "price": 14000, "createdAt": "2025-02-14T19:19:17.664Z" }, { "id": 2, "description": "Sushi", "type": "outcome", "category": "Alimentação", "price": 200, "createdAt": "2025-02-14T20:19:17.664Z" }, { "id": 3, "description": "Ar condicionado", "type": "outcome", "category": "Casa", "price": 3000, "createdAt": "2025-03-14T10:19:17.664Z" } ] }
but when I search for http://localhost:3000/transactions?q=Sushi, it returns all the results, not just the one with 'Sushi' in it.
The text was updated successfully, but these errors were encountered:
”description=Sushi” is true
Sorry, something went wrong.
Hey @juliamchdo, I did lib version downgrade to v0 and it works
You need to downgrade the current version of json-server to version 0.17.4 to be able to use it.
Run this command in your project.
npm i [email protected]
to crosscheck just run: npx json-server --version it will show you : 0.17.4
Happy Coding!
No branches or pull requests
I have this server.json file:
{
"transactions" : [
{
"id": 1,
"description": "Desenvolvimento de site",
"type": "income",
"category": "Venda",
"price": 14000,
"createdAt": "2025-02-14T19:19:17.664Z"
},
{
"id": 2,
"description": "Sushi",
"type": "outcome",
"category": "Alimentação",
"price": 200,
"createdAt": "2025-02-14T20:19:17.664Z"
},
{
"id": 3,
"description": "Ar condicionado",
"type": "outcome",
"category": "Casa",
"price": 3000,
"createdAt": "2025-03-14T10:19:17.664Z"
}
]
}
but when I search for http://localhost:3000/transactions?q=Sushi, it returns all the results, not just the one with 'Sushi' in it.
The text was updated successfully, but these errors were encountered: