Replies: 3 comments 4 replies
-
Got the same problem when trying to convert from V1. Worked on V1, but not here. |
Beta Was this translation helpful? Give feedback.
-
Got the same problem :)
Does this mean it's not something that is planned on being fixed? |
Beta Was this translation helpful? Give feedback.
-
It's a bit of a hack, but you can sort on a count as follows, you just don't reference the count field in the second reference, use anything that actually exists, but that you preferably aren't using elsewhere.
|
Beta Was this translation helpful? Give feedback.
-
If one includes a
withCount
it throws an error on the query as the Component includes normal columns as part of the select even if a query builder is used, ie.The resulting query which throws an error from the above implementation is:
It is possible to circumvent the issue above by using a label in the
columns()
function but then the column is not sortable. It would be nice to have asortable
withCount
column.The following works with just a label, but without sorting.
Has anyone got a working
withCount
example that is sortable.Many thanks
Beta Was this translation helpful? Give feedback.
All reactions