convex-ents 0.9.1 → 0.9.3

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/index.js CHANGED
@@ -138,8 +138,8 @@ function defineEntSchema(schema, options) {
138
138
  const isSymmetric = inverseEdge === void 0;
139
139
  if (!isSymmetric) {
140
140
  edgeTable.index(`${inverseId}_${forwardId}`, [
141
- forwardId,
142
- inverseId
141
+ inverseId,
142
+ forwardId
143
143
  ]);
144
144
  }
145
145
  schema[edgeTableName] = edgeTable;
@@ -1364,7 +1364,7 @@ var PromiseEntOrNullImpl = class extends Promise {
1364
1364
  return new PromiseEdgeOrNullImpl(
1365
1365
  this.ctx,
1366
1366
  this.entDefinitions,
1367
- this.table,
1367
+ edgeDefinition.to,
1368
1368
  edgeDefinition,
1369
1369
  async () => {
1370
1370
  const { id } = await this.retrieve();