Closed
Description
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
- [x ] You've met the prerequisites.
- [ x] You're running the latest version of Parse Server.
- [ x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
"express": "~4.11.x",
"kerberos": "~0.0.x",
"parse": "~1.8.0",
"parse-server": "~2.2.0",
Steps to reproduce
- Create one object TestObject with single value with given beforeSave trigger.
- beforeSave Trigger creates a pointer field if not available
- Fetch same object and try to change non_pointer key and save
- BeforeSave trigger doesn't find old pointer field and recreated new pointer field.
exports.beforeSaveTestObject = request => {
console.log('before Save test Object');
var obj = request.object;
console.log(obj);
console.log(obj.get('point'));
if (obj.get('point')) {
return;
}
console.log('point not found');
var TestObject1 = Parse.Object.extend('TestObject1');
var newObj = new TestObject1({'key1': 1});
return newObj.save().then((newObj) => {
obj.set('point' , newObj);
});
}
Logs/Trace
Found a pointer column not in the schema, dropping it. TestObject point
Found a pointer column not in the schema, dropping it. TestObject point
before Save test Object
ParseObject { _objCount: 0, className: 'TestObject', id: 'w93hLKA3VZ' }
undefined
point not found
Metadata
Metadata
Assignees
Labels
No labels