How to order preloaded many-to-many relationship using pivot column? #4748
Unanswered
ArjunAtlast
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
Question
model with a many-to-many relationship on anAttachment
model. I am using a pivot column namedposition
to set the position of the attachment relative to the question. I need to preload the attachments in the order set by theposition
value when reading a question. How can I achieve this in adonis js v6?Beta Was this translation helpful? Give feedback.
All reactions