Skip to content

Allow editing createdAt in cloud code #9889

@R3D347HR4Y

Description

@R3D347HR4Y

Current Limitation

Saving a Parse Object fails if I try to edit or set the createdAt attribute, the Readme mentions that the maintenanceKey lets you edit these attributes but there is no docs about that or the maintenanceKey in general

Feature / Enhancement Description

Add a "useMaintenanceKey" attribute in Parse.Object.save / saveAll that allows editing createdAt and possibly updatedAt

Example Use Case

Many apps use the createdAt field in their UI and Parse Queries and when you accidentally delete an Object and need to restore it or when you need to import data from exports (ie. importing a user's history from a competitor app) there is no way for you to set the createdAt prop

Alternatives / Workarounds

Using mongodb directly but it is highly impractical and requires implementing a complete MongoDB client and new functions that won't even be able to trigger Parse Hooks and so on...

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:docsOnly change in the docs or README

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions