I'm trying to store a hierarchical structure using the Nested Set Model technique. I'm using Waterline ORM for node to query and update my database. How would I model the following query using Waterline?
UPDATE MyTable SET counter=counter+2 WHERE id > 4 AND id < 17;
I'm aware of MyTable.update(...) but I'm not sure how to reference an existing column value in the query.