Skip to content

QueryBuilder does not work as expected #258

Closed
@Vildnex

Description

@Vildnex

I'm not sure if this is an actual issue or I'm just doing something wrong but...

I'm trying to create a query something like this:

QueryBuilder<ParseObject>(ParseObject("Session"))
      ..whereEqualTo('user', userID)
      ..query().then((result){
        // DOING SOMETHING WITH THE RESULT
});

Because I want to obtain the last session of a user, or in other words to check if it's already logged-in or not.

Now the problem with that query is that every time my "result" is going to be empty, even those I have that userID in my database.

Can you help me to find out what I'm doing wrong or this is an actual issue?

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