convex-ents 0.13.0-alpha.0 → 0.13.0-alpha.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/dist/writer.js CHANGED
@@ -1271,7 +1271,7 @@ var WriterImplBase = class _WriterImplBase {
1271
1271
  this.entDefinitions,
1272
1272
  this.table
1273
1273
  )[key];
1274
- if (edgeDefinition === void 0) {
1274
+ if (edgeDefinition === void 0 || edgeDefinition.cardinality === "single" && edgeDefinition.type === "field" && edgeDefinition.field === key) {
1275
1275
  fields[key] = value[key];
1276
1276
  }
1277
1277
  });