parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Allow editing createdAt in cloud code

Open R3D347HR4Y opened this issue 1 month ago • 2 comments

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...

R3D347HR4Y avatar Oct 27 '25 10:10 R3D347HR4Y

🚀 Thanks for opening this issue!

This seems to be merely a docs or types issue; the feature should already exist. Also see the Access Scopes. Please specify what exactly you're missing.

mtrezza avatar Nov 05 '25 07:11 mtrezza