Skip to content

Aggregations with pointers does not work #5007

Closed
@srameshr

Description

@srameshr

Issue Description

Aggregate query documentation does not mention that the pointer field names should be appended with _p_ while querying.

Steps to reproduce

If you have a pointer field by name createdBy, then:
THIS DOES NOT WORK

{
  project: { 'createdBy': 0 }
} 

** THIS WORKS**

{
  project: { '_p_createdBy': 0 }
} 

Expected Results

Update the docs to reflect this nuance.

Actual Outcome

N/A

Environment Setup

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions