Skip to content

Instantly share code, notes, and snippets.

@Bondifrench
Created May 6, 2014 05:01
Show Gist options
  • Save Bondifrench/11553566 to your computer and use it in GitHub Desktop.
Save Bondifrench/11553566 to your computer and use it in GitHub Desktop.
Sequelize raw query multiple rows (no DAO)
fin_item
.findAll({where: Sequelize.and({cik: 1800}, {fiscalyear: 2013}, {periodfocus: 'FY'}, {rootconcept: 'Statement of Income'}), order: 'preorder'}, {raw: true})
.success(function (result) {
console.log(result.length);
console.log(result)
})
.error(function (err) {
console.error(err);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment