Description
- You've met the prerequisites.
- You're running the latest version of Parse Server.
- You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Good afternoon,
I tried to use the code I wrote for Parse.com (some CloudCode stuff) on parse-server and it seems that there is a bug with the equalTo
and notEqualTo
methods.
Some issues have been fixed like #801 but it seems that the bug still exists.
I wrote a test case to illustrate the bug (got a lot of trouble doing it and I could have written it in a much better way but it shows the bug! 😄 💪 )
Basically the use case is the following: you have two lists -> on one side you have the guys who love a cake ( 🍰 😋 !) and on the other hand, you have the guy who hate this very same cake (😠). In particular in my test case, the user2
likes no cake and is a hater of possible cakes.
So if I ask for: Give me all the cakes where the user2 is NOT a hater it should return null. It actually returns 3...
Translated into code:
var query = new Parse.Query(Cake);
query.notEqualTo("hater", user2);
returns 3 instead of 0.
Did I miss something?
Environment Setup
VERBOSE=1
Parse-Server 2.2.4