You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create beforeUpdate and beforeSave/New cloud functions #4468
Check req.object.isNew() this will be true for new objects, and false if the object is being updated. Another trick would be to use the createdAt / updatedAt properties.
Activity
flovilmart commentedon Dec 28, 2017
Check
req.object.isNew()this will betruefor new objects, andfalseif the object is being updated. Another trick would be to use thecreatedAt/updatedAtproperties.See: http://parseplatform.org/Parse-SDK-JS/api/v1.11.0/Parse.User.html#isNew