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

Field "is_new" is picked up for NotEquals (is_ne) #383

Closed
ev45ive opened this issue Oct 7, 2016 · 5 comments
Closed

Field "is_new" is picked up for NotEquals (is_ne) #383

ev45ive opened this issue Oct 7, 2016 · 5 comments

Comments

@ev45ive
Copy link

ev45ive commented Oct 7, 2016

I have struct like this:

{ id: 123, title: "hello", is_new: true }

when i search for it with ?is_new=true i get everything but this one - like its seeing "is_ne" and uses not equals matcher. Shouldn't it be matched by end of param name? :-)

Btw. Json-Server is AWSOME. I am prototyping and relationships ?_embed and ?_extend saved me a looot of headache! Thanks!

@typicode
Copy link
Owner

Good catch 👍 will fix it
Thank you and glad that it's helpful :)

@typicode
Copy link
Owner

Hi @ev45ive,

I've published v0.9.0-beta.2 which should better handle operators. You can give it a try using npm install -g json-server@next. Documentation can be found in the next branch.

Let me know if you spot anything else.

@ev45ive
Copy link
Author

ev45ive commented Oct 28, 2016

Awesome. Thanks a lot!

I am doing JS/Front-End teaching classes, and JSON-Server is a kickass tool to showcase stuff. :-) 👍

@typicode
Copy link
Owner

Oh great usage and very happy to know it's used to teach people front-end 😃

@typicode
Copy link
Owner

Closing it since v0.9.0 is now published :)

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

2 participants