Skip to content

aggregate with pointer relation match ? #4489

@xedixermawan

Description

@xedixermawan

Hi,
is it possible to do aggregate query using match with pointer relation ?
I'm using latest branch version.
for instance request like this:

curl -X GET \
  -H "X-Parse-Application-Id: myAppId" \
  -H "X-Parse-Master-Key: myAppKey" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'match={"user":{"$eq":{"__type":"Pointer","className":"_User","objectId":"NE962BXR9x"}}}' \
	--data-urlencode 'group={"objectId":null,"total":{"$sum":"$value"}}' \
  http://localhost:1337/parse/aggregate/Distance

the Distance collection have a field calls 'user' ( a pointer type which point to collection _User.)

the aggregate above resulting empty data {"results":[]}, meanwhile it should not

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