@nhtio/lucid-resourceful 1.20250724.0 → 1.20250724.1

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/index.cjs CHANGED
@@ -1147,6 +1147,13 @@ function withResourceful(options = {}) {
1147
1147
  };
1148
1148
  Object.entries(resourcefulModelMetaSchema.properties).forEach(
1149
1149
  ([propertyKey, propertyMeta]) => {
1150
+ const resolvedColumnName = getFieldKey(
1151
+ propertyKey,
1152
+ propertyMeta.lucidDefinitions
1153
+ );
1154
+ if (null === resolvedColumnName) {
1155
+ return;
1156
+ }
1150
1157
  switch (propertyMeta.kind) {
1151
1158
  case "column": {
1152
1159
  ret.properties[propertyKey] = this.$resourcefulModelColumnMetaToOpenApiSchema(
@@ -1499,7 +1506,7 @@ function withResourceful(options = {}) {
1499
1506
  ]) {
1500
1507
  await scopeCallback(ctx, app, query);
1501
1508
  }
1502
- const columnsToSelect = validatedMethodOptions.fields.filter((field) => allowedFieldsMap.has(field)).map((field) => this.$keys.serializedToColumns.get(field));
1509
+ const columnsToSelect = validatedMethodOptions.fields.filter((field) => allowedFieldsMap.has(field)).map((field) => this.$keys.serializedToColumns.get(field)).filter((column2) => !!column2);
1503
1510
  const countQuery = query.clone();
1504
1511
  const recordsQuery = query.clone();
1505
1512
  countQuery.count("*", "total");
@@ -12744,7 +12751,7 @@ function resourcefulHasManyThrough(model, options = {}) {
12744
12751
  map.set(propertyKey, opts);
12745
12752
  };
12746
12753
  }
12747
- const version = "1.20250724.0";
12754
+ const version = "1.20250724.1";
12748
12755
  exports.errors = errors.errors;
12749
12756
  exports.definitions = definitions.definitions;
12750
12757
  exports.resourcefulBelongsTo = resourcefulBelongsTo;