Currently utilizing Sequelize, I have successfully executed an Inner Join after multiple attempts and achieved satisfying results:
{
"success": false,
"message": "Query not successful, the result was empty",
"data": {
"codWO": "1016285246",
"codType": "01",
"origin": "1016285246--origin",
"solution": "1016285246--solution",
"consecuence": "1016285246--consecuence",
"actions": "1016285246--actions",
"hours_stopped": 20.5,
"failureState": "1016285246--failureState",
"failureEquipment": "1016285246--failureEquipment",
"failureEffect": "1016285246--failureEffect",
"failureCause": "1016285246--failureCause",
"wo_cor_type.name": "Emergency Repair",
"wo_cor_type.description": "Urgent repairs such as a broken device that avoid running the test.",
"wo_cor_type.codType": "01"
}
}
All variables are accessible for reading, with the exception of the last three which contain periods.
How can I successfully access and read variables with periods in their names?
vm.woCorrective = data.data;
console.log(data.success);
console.log(vm.woCorrective);
console.log(vm.woCorrective.codWO);
console.log(vm.woCorrective.solution);
console.log(vm.woCorrective.failureCause);
// console.log(vm.woCorrective.[('wo_cor_type.name')]);