@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.
- package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +9 -5
- package/fesm2015/infrab4a-connect.mjs +9 -2
- package/fesm2015/infrab4a-connect.mjs.map +1 -1
- package/fesm2020/infrab4a-connect.mjs +8 -4
- package/fesm2020/infrab4a-connect.mjs.map +1 -1
- package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
3176
|
-
.
|
|
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
|
? [
|