Created
May 6, 2014 05:01
-
-
Save Bondifrench/11553566 to your computer and use it in GitHub Desktop.
Sequelize raw query multiple rows (no DAO)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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