@infrab4a/connect 4.0.0-beta.34 → 4.0.0-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3170,11 +3170,15 @@ const withFindHasuraGraphQL = (MixinBase) => {
3170
3170
  return class FindHasuraGraphQLMixin extends MixinBase {
3171
3171
  constructor() {
3172
3172
  super(...arguments);
3173
- this.bindOrderByAttributes = (orderBy, fields) => Object.keys(orderBy).reduce((acc, current) => ({
3173
+ this.bindOrderByAttributes = (orderBy, fields) => Object.keys(orderBy).reduce((acc, current) => [
3174
3174
  ...acc,
3175
- [AttributeOptionHelper.FindByAttribute(current, fields)
3176
- .columnName]: orderBy[current],
3177
- }), {});
3175
+ {
3176
+ [AttributeOptionHelper.FindByAttribute(current, fields)
3177
+ .columnName]: orderBy[current] === 'asc'
3178
+ ? 'asc_nulls_last'
3179
+ : 'desc_nulls_last',
3180
+ },
3181
+ ], []);
3178
3182
  this.bindAggretageAttributes = (aggregates, fields) => [
3179
3183
  ...(aggregates?.minimal?.length
3180
3184
  ? [