Skip to content

in the beforeSave,How to know the original value of key #6541

Closed
@lybaiyy123

Description

@lybaiyy123

On the client side, a user modifies/unset/set/ the key value

On the server side, how to know the original value of key?

for example:
Raw data:
className:todo;
id:'xxxxx',
name:'tom',
age:18

Clinet:
var todo=new Parse.Object('todo')
todo.id='xxxxx'
todo.unset('name')
todo.save()

Server:
Parse.Cloud.beforSave('todo',req=>{
// i want know original value of name
})

Is there a way to know this? thanks.

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