I have a complex set of associated models. The models are associated using join tables, each with an attribute called \'order\'. I need to be able to query the parent model \'Pa
I believe you can do:
db.Page.findAll({ include: [{ model: db.Gallery include: [{ model: db.Artwork }] }], order: [ [ db.Gallery, 'order', 'DESC' ], [ db.Gallery, db.ArtWork, 'order', 'DESC' ] ] })