Skip to content

include() in aggregate queries #4728

Closed
Closed
@fmendoza

Description

@fmendoza

I'm trying to show the pointer data but it seems is not supported?

let query = new Parse.Query('MyObject')
query.include(['myPointer'])

let pipeline = {
    match: { sectionType: 'Used', status: 'Active', deletedAt: { '$exists': false } },
    sample: { size: 10 }
}

let result = await query.aggregate(pipeline)

Expected Results

myPointer field should return all database fields

Actual Outcome

myPointer only return className, objectId and __type fields.

Environment Setup

  • Server

    • parse-server version: 2.7.4
    • Operating System: Mac
    • Hardware: Macbook Pro
    • Localhost or remote server?: Localhost
  • Database

    • MongoDB version: 3
    • Storage engine: n/a
    • Hardware: Macbook
    • Localhost or remote server? : Localhost

Logs/Trace

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions