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!
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
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!
Environment Setup
Steps to reproduce
Logs/Trace