Discovering loopback has been an enlightening experience for me. However, as I delve deeper into its functionalities, I've stumbled upon something unexpected.
I noticed that when executing queries, such as using the updateAll method, if a parameter is left undefined, the query will end up updating all data within the specified model.
Employee.updateAll(
{
username: undefined
},
{
address: "ABC"
}, function(err, results) {
});
It leaves me wondering why the framework behaves this way and updates all data when a value is undefined.