Support orderBy as array (#5681)
closes: #4301 --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { RecordGqlOperationOrderBy } from '@/object-record/graphql/types/RecordGqlOperationOrderBy';
|
||||
|
||||
export const FIND_MANY_TIMELINE_ACTIVITIES_ORDER_BY: RecordGqlOperationOrderBy =
|
||||
{
|
||||
createdAt: 'DescNullsFirst',
|
||||
};
|
||||
[
|
||||
{
|
||||
createdAt: 'DescNullsFirst',
|
||||
},
|
||||
];
|
||||
|
||||
@ -13,8 +13,10 @@ export const makeTimelineActivitiesQueryVariables = ({
|
||||
in: [...activityIds].sort(sortByAscString),
|
||||
},
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'DescNullsFirst',
|
||||
},
|
||||
orderBy: [
|
||||
{
|
||||
createdAt: 'DescNullsFirst',
|
||||
},
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user