Skip to content

remove id from object after destroying it #1454

Open
@vince1995

Description

@vince1995

New Issue Checklist

Issue Description

I've noticed that when you destroy an object, it still has the id property.

Steps to reproduce

const obj = new Parse.Object("randomCollection");
await obj.save();
console.log(obj.id) // the id
await obj.destroy();
console.log(obj.id); // look at actual/expected outcome

Actual Outcome

console.log(obj.id) // the id

Expected Outcome

console.log(obj.id) // undefined

Environment

Server

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

Database

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

Client

  • Parse JS SDK version: 3.4.1

Logs

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