Skip to content

whereNotEqualTo not working #85

Open
@qandeelabbassi

Description

@qandeelabbassi

I have following live query for subscribing to class objects that do not belong to current user:

 ParseQuery<ParseObject> parseQuery = ParseQuery.getQuery("myclass");
        parseQuery.include("user");
        parseQuery.whereNotEqualTo("user", ParseUser.createWithoutData(ParseUser.class, ParseUser.getCurrentUser().getObjectId()));
        SubscriptionHandling<ParseObject> subscriptionHandling = parseLiveQueryClient.subscribe(parseQuery);
        subscriptionHandling.handleEvent(SubscriptionHandling.Event.CREATE, new SubscriptionHandling.HandleEventCallback<ParseObject>() {
            @Override
            public void onEvent(ParseQuery<ParseObject> query, ParseObject obj) {
            }
        });

It doesn't work, I am still getting objects that have current user in the "user" field. I can't find any problem in it, its a simple query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions