You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The order option format only supports the ['field'] and ['field', 'DESC'] variations (field name and the optional order direction). For example, ordering by an associated model's field won't work.
I'm curious what the limitations are to prevent ordering on associated models' fields. I'd like to use this package, but this is stopping me from integrating it, and was wondering if it was a limitation of sequelize or something else.
The text was updated successfully, but these errors were encountered:
I think it could be technically supported, but I don't have the resources to implement it. The whole parsed cursor structure would change. At the moment the order by configuration field is normalized into format ['fieldName', 'DIRECTION']. Associated models have a bunch of possible formats. Changing the normalization would of course have an effect elsewhere.
I would gladly accept contributions regarding this limitation, but it is simply too much work for me right now.
From the readme:
I'm curious what the limitations are to prevent ordering on associated models' fields. I'd like to use this package, but this is stopping me from integrating it, and was wondering if it was a limitation of sequelize or something else.
The text was updated successfully, but these errors were encountered: