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

select() with nested keys issue #3185

Closed
flovilmart opened this issue Dec 6, 2016 · 0 comments · Fixed by #3186
Closed

select() with nested keys issue #3185

flovilmart opened this issue Dec 6, 2016 · 0 comments · Fixed by #3186
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@flovilmart
Copy link
Contributor

flovilmart commented Dec 6, 2016

When using the select() method with nested keys (i.e.: key1.key2) key1 needs to be included automatically.

ex:

let query = new Parse.Query("MyObject");
query.select("key.key2");
// does not work
let query = new Parse.Query("MyObject");
query.include("key");
query.select("key.key2");
// works!
@flovilmart flovilmart added the type:bug Impaired feature or lacking behavior that is likely assumed label Dec 6, 2016
This was referenced Dec 6, 2016
flovilmart added a commit that referenced this issue Dec 6, 2016
* Adds tests that reproduce the issue

* Use values from keys to force include when needed
Jcarlosjunior pushed a commit to back4app/parse-server that referenced this issue Dec 13, 2016
* Adds tests that reproduce the issue

* Use values from keys to force include when needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant