0

I know that model.save({ silent: true }, callback); is not supported. But anyone know how to update Sails model without trigger lifecycle event??

I have ask on github issue, but still no respond so far. Link is here

Pewh Gosh
  • 1,031
  • 1
  • 11
  • 29

1 Answers1

1

You can do this by using .native()/.query() to execute your query, thus avoiding the call back.

Use .native() if your using MongoDB and use .query() if your running MySQL/Postgres

http://sailsjs.org/#!/documentation/reference/waterline/models/native.html

http://sailsjs.org/#!/documentation/reference/waterline/models/query.html

Meeker
  • 5,979
  • 2
  • 20
  • 38