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
I encountered a problem when I needed to order my collection list by custom column
For instance I add a custom column to my query with method select
$query->select(['customColumn' => ['$size' => '$items']])
// and then I need to order by this custom column$query->addOrderBy(['customColumn' => SORT_DESC])
And nothing happens
PS I have already tried 1 and -1 instead of using SORT_ASC and SORT_DESC
What's expected?
I expect same behaviour when I use $project or $addField parameters in native query
Actually this works fine
Hi everyone!
What steps will reproduce the problem?
I encountered a problem when I needed to order my collection list by custom column
For instance I add a custom column to my query with method select
And nothing happens
PS I have already tried 1 and -1 instead of using SORT_ASC and SORT_DESC
What's expected?
I expect same behaviour when I use
$project
or$addField
parameters in native queryActually this works fine
I would like you to add a couple of methods for
$project
Or add existing fields to
$project
What do you get instead?
Nothing
Additional info
The text was updated successfully, but these errors were encountered: