Skip to content

QueryBuilder does not work as expected #258

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

Closed
Vildnex opened this issue Aug 24, 2019 · 4 comments
Closed

QueryBuilder does not work as expected #258

Vildnex opened this issue Aug 24, 2019 · 4 comments

Comments

@Vildnex
Copy link

Vildnex commented Aug 24, 2019

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?

@danibjor
Copy link

Session collection is not readable. Same behavior from NodeJS SDK.

@Vildnex

This comment was marked as duplicate.

@danibjor
Copy link

var user = ParseUser.currentUser();
if (user != null) {
// Got user from local storage on device.
// User is logged in - do stuff

}

@Vildnex

This comment was marked as duplicate.

@Vildnex Vildnex closed this as completed Aug 25, 2019
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

2 participants