I have a beforeSave on MyClass, but I can’t get the data validation to work/respond at all. What am I missing? What Parse Server version is this supported from?
Parse.Cloud.beforeSave(MyClass, (request) => {
// my beforeSave logic (runs as expected)
},{
fields: {
identifier : {
required:true,
options: identifier => {
return identifier.length > 0;
},
error: 'identifier must be at least one character'
}
}
});
Yeah… for this project I’m running my server on Sashido and the latest version they support is currently 3.6.0. I wish they would support new versions (a lot) quicker, but otherwise I am happy with the service. Reliable and stable, and responsive support