milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Querying for a file not existing #57

Closed rwitten closed 10 years ago

rwitten commented 10 years ago

Hi guys,

I can't express the below Javascript query using ParsePy. The query returns objects where the "video" field isn't set and "video" is of type File.

var query = new Parse.Query(Classname); query.notEqualTo("video", null);

I've tried Classname.Query.all().filter(video__neq = None) with no success.

Best, Rafi

rwitten commented 10 years ago

After reviewing the relevant source code, the problem is that the operator for not equals is "ne", not "neq".

The query Classname.Query.all().filter(video__ne = None) behaves as expected.

I've marked the issue as closed.

My bad, Rafi