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

Support using the Record object directly in relational query #162

Open
chpapa opened this issue Oct 11, 2017 · 0 comments
Open

Support using the Record object directly in relational query #162

chpapa opened this issue Oct 11, 2017 · 0 comments

Comments

@chpapa
Copy link

chpapa commented Oct 11, 2017

Currently it requires users to use the ID for relational query, like this:

Query noteQuery = new Query("Note").equalTo("account", currentUser.getId());

It would be great if we can just do this too.

Query noteQuery = new Query("Note").equalTo("account", currentUser);

Technically, we should be able to support both:

  1. A string, assume it is an ID (for backward compatibility)
  2. A Record object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant