Answer the question
In order to leave comments, you need to log in
How sequelize.fn works?
I read the doc, read the source code, googled carefully, but could not understand the power of this function. Does it call functions written inside the database (like those created through create function
postgres) + some built-in ones, or does it allow you to write custom functions at the code level that extend the behavior and allow you not to introduce logic into the database?
Answer the question
In order to leave comments, you need to log in
First option. Here is an example from their docs
Model.findAll({
attributes:
});
sequelize.query
and in general, the fewer sequelizations, the better. Debugging it is still an adventure. Especially if someone actively used scope and instance methods.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question