Skip to content

SaveAll on new objects does not return objectIds #502

Closed
parse-community/parse-server
#8520
@dplewis

Description

@dplewis

New Issue Checklist

Issue Description

When setting liveQuery.classNames in the server config save all doesn't return object Id when saving more than one new objects. I assume that some sort of afterSave trigger is called that strips away the objectId. I've tested this against Parse Server 6. ObjectIds are returned when you saveAll on one object.

Since objectIds aren't returned you can't delete / save etc.

I believe the issue can be found by looking https://github.com/parse-community/parse-server/blob/alpha/src/RestWrite.js#L1607

Steps to reproduce

Actual Outcome

Objects save but objectId is missing

Expected Outcome

Objects save and return Id.

Parse PHP SDK

  • SDK version: 2.0.0
  • PHP version: 8.1

Server

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

Database

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

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions