We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do we have it? if so whats the syntax.
Additionally, i am creating my model's associations with column in the lookup table eg.
db.Product.hasMany("additionalmedia", db.MediaItem, { order: Number }, { reverse : "additionalproducts" });
I'd like to be able to sort by order. Both
product.getAdditionalmedia('order', function (err, additionalImages) {
and
product.getAdditionalmedia({}, 'order', function (err, additionalImages) {
don't seem to have any effect.
Thanks :)
The text was updated successfully, but these errors were encountered:
Try:
product.getAdditionalmedia([ 'order' ], function (err, additionalImages) {
I have to change it to support a string so you can just pur order (asc) or -order (desc).
order
-order
Sorry, something went wrong.
acf536a
You can use "order" (ascending) or "-order" (descending).
No branches or pull requests
Do we have it? if so whats the syntax.
Additionally, i am creating my model's associations with column in the lookup table
eg.
I'd like to be able to sort by order.
Both
and
don't seem to have any effect.
Thanks :)
The text was updated successfully, but these errors were encountered: