So I want to update my model without changing updatedAt
field (not by default). Does Waterline have such a feature at this moment?
Sails.js/Waterline: is it possible to perform a "silent" update (without affecting updatedAt field)?
Asked
Active
Viewed 61 times
0

Kiryl Anokhin
- 429
- 4
- 10
-
1Nope. They have not suport yet – SkyQ Oct 19 '16 at 08:01
1 Answers
0
Short story: this is not yet possible.
As you can see from this code in waterline 0.12.2, the field updatedAt
is automatically updated if autoUpdatedAt
is set to true.
This leaves you with two possible solutions:
- You can temporarily turn off
autoUpdatedAt
before your update - You can use a manual query. See
.query
for more details

dynamic_cast
- 1,075
- 1
- 9
- 23