Confused by grouping in ListOperation #1107
Unanswered
benwrigley
asked this question in
Q&A (Help)
Replies: 1 comment 4 replies
-
Hello @benwrigley We always apply the order by primary key as the last order (if no order by primary key is specified by developer). Any order you define will always take precedence, so in your example everything would be ordered by Hope that helps 👍 |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
Brand new to backpack still, and trying to understand the grouping option.
I have a polymorphic
Flag
table withflaggable_id
andflaggable_type
I want to group my query by both of these fields and then order them by the highest count.
The query this produces still tries to order by 'id'
I'm not sure what I'm doing wrong here. Any help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions