Skip to content

Cannot pass Parse pointers inside arrays to cloud functions #8861

Closed
@mstniy

Description

@mstniy

New Issue Checklist

Issue Description

Parse server rejects cloud function calls which include Parse pointers inside arrays

Steps to reproduce

Parse.Cloud.define("test", function () {});
// Later
await Parse.Cloud.run("test", {
  a:[{__type: "Pointer", className:"foo", objectId: "foo" }]
});

Actual Outcome

Parse server returns an internal server error

Expected Outcome

The cloud function should run

Environment

Server

  • Parse Server version: 6.4.0
  • Operating system: Ubuntu
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 6.0.12
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): javascript
  • SDK version: 4.3.1

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:duplicateDuplicate of already reported issuetype:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions