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/functions.js CHANGED
@@ -272,7 +272,7 @@ var WriterImplBase = class _WriterImplBase {
272
272
  this.entDefinitions,
273
273
  this.table
274
274
  )[key];
275
- if (edgeDefinition === void 0) {
275
+ if (edgeDefinition === void 0 || edgeDefinition.cardinality === "single" && edgeDefinition.type === "field" && edgeDefinition.field === key) {
276
276
  fields[key] = value[key];
277
277
  }
278
278
  });