@dankohn is correct and that will work but it is safer to use the following:
Post.findAll({ limit: 10, order: [['updatedAt', 'DESC']]});
as this
will escape updatedAt and validate DESC against a list of valid direction parameters
@dankohn is correct and that will work but it is safer to use the following:
Post.findAll({ limit: 10, order: [['updatedAt', 'DESC']]});
as this
will escape updatedAt and validate DESC against a list of valid direction parameters