Skip to content

query.includeAll() does not include array of Pointers #6926

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
Rafarel opened this issue Oct 2, 2020 · 3 comments · Fixed by #7002
Closed

query.includeAll() does not include array of Pointers #6926

Rafarel opened this issue Oct 2, 2020 · 3 comments · Fixed by #7002
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@Rafarel
Copy link

Rafarel commented Oct 2, 2020

I have a Parse.Object A that have a children property that is an array of Pointers to reference other objects of type B.

When I do the following, it does not send me back the full B objects contained in the children property, I mean all B.get("something") returns undefined

const query = new Parse.Query("A");
query.includeAll();
return await query.find({ sessionToken: user.getSessionToken() }); 

But when I do it like that it works fine ...

const query = new Parse.Query("A");
query.include("children");
return await query.find({ sessionToken: user.getSessionToken() }); 

So maybe query.includeAll is broken or I missed something ?

I'm using parse-server 4.3.0

@mtrezza
Copy link
Member

mtrezza commented Oct 9, 2020

Thanks for reporting. To report an issue, please use the issue template provided when you create an issue.

@dplewis
Copy link
Member

dplewis commented Oct 12, 2020

Include all only works for type Pointer fields. See here. You can try to add type Array and see if it fixes your issue.

@mtrezza
Copy link
Member

mtrezza commented Oct 23, 2020

I'm closing this as it seems to be resolved. Feel free to comment if you have any questions and we can re-open this issue.

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.

3 participants