Created
May 6, 2014 04:57
-
-
Save Bondifrench/11553534 to your computer and use it in GitHub Desktop.
Sequelize multiple rows query
This file contains hidden or 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'}) | |
.success(function (result) { | |
console.log(result.length); | |
for (var i=0;i<result.length;i++) {console.log(result[i].values);} | |
}) | |
.error(function (err) { | |
console.error(err); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment