Skip to content

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

Description

@Rafarel

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

Activity

  1. mtrezza commented on Oct 9, 2020

    @mtrezza
    Member

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

  2. dplewis commented on Oct 12, 2020

    @dplewis
    Member

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

  3. mtrezza commented on Oct 23, 2020

    @mtrezza
    Member

    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.

  4. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    on Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions