{
“jobs” : [{
“functionLocation” : “/data.js” ,
“functionName” : “save” ,
“description” : “Save Data to database” ,
“executionConfig” : {
“time” : “* * * * *”
}
}]
}
and by data.js file is as below
import wixData from ‘wix-data’ ;
export function save() {
let toSave = {
“firstName” : “John” ,
"lastName " : “Doe”
};
wixData.save( "Contact" , toSave);
}
kindly suggest as I have just checked several post but could not help unfortunately