Skip to content

Instantly share code, notes, and snippets.

@Bondifrench
Created May 6, 2014 04:57
Show Gist options
  • Save Bondifrench/11553534 to your computer and use it in GitHub Desktop.
Save Bondifrench/11553534 to your computer and use it in GitHub Desktop.
Sequelize multiple rows query
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