Skip to content

Create beforeUpdate and beforeSave/New cloud functions #4468

Closed

Description

Is there a work around, maybe it's there lying in plain sight

Activity

  1. flovilmart commented on Dec 28, 2017

    @flovilmart
    Contributor

    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.

    See: http://parseplatform.org/Parse-SDK-JS/api/v1.11.0/Parse.User.html#isNew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions