I marked a property modified as read only in my model and went to test it by executing PUT {"modified": 1} but it threw SQL errors. After enabling DEBUG on the mysql connector I realized it just removed the column set in the statement but then the query was invalid:
loopback:connector:mysql SQL: UPDATEtasksSET WHEREid=?, params: [1]
As you can see there are no columns being SET in between SET and WHERE.
I marked a property
modifiedas read only in my model and went to test it by executingPUT {"modified": 1}but it threw SQL errors. After enabling DEBUG on the mysql connector I realized it just removed the column set in the statement but then the query was invalid:loopback:connector:mysql SQL: UPDATEtasksSET WHEREid=?, params: [1]As you can see there are no columns being SET in between SET and WHERE.