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

Querying for a file not existing #57

Closed
rwitten opened this issue Sep 10, 2014 · 1 comment
Closed

Querying for a file not existing #57

rwitten opened this issue Sep 10, 2014 · 1 comment

Comments

@rwitten
Copy link
Contributor

rwitten commented Sep 10, 2014

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
Copy link
Contributor Author

rwitten commented Sep 11, 2014

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

@rwitten rwitten closed this as completed Sep 11, 2014
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

1 participant