@nicia-ai/typegraph 0.42.1 → 0.43.0
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/backend/postgres/pglite-store.cjs +4 -4
- package/dist/backend/postgres/pglite-store.d.cts +1 -1
- package/dist/backend/postgres/pglite-store.d.ts +1 -1
- package/dist/backend/postgres/pglite-store.js +3 -3
- package/dist/backend/sqlite/local-store.cjs +4 -4
- package/dist/backend/sqlite/local-store.d.cts +1 -1
- package/dist/backend/sqlite/local-store.d.ts +1 -1
- package/dist/backend/sqlite/local-store.js +3 -3
- package/dist/{chunk-5P6IPIT6.cjs → chunk-64LERBFM.cjs} +17 -17
- package/dist/{chunk-5P6IPIT6.cjs.map → chunk-64LERBFM.cjs.map} +1 -1
- package/dist/{chunk-K2HHCWZO.cjs → chunk-BLBG2VZ5.cjs} +51 -51
- package/dist/{chunk-K2HHCWZO.cjs.map → chunk-BLBG2VZ5.cjs.map} +1 -1
- package/dist/{chunk-EVFL2ZY5.js → chunk-CTWZPYJW.js} +2 -2
- package/dist/chunk-CTWZPYJW.js.map +1 -0
- package/dist/{chunk-DP7KC6CL.js → chunk-JNXZQBN3.js} +72 -25
- package/dist/chunk-JNXZQBN3.js.map +1 -0
- package/dist/{chunk-2SO5I5AI.cjs → chunk-KDRF3NR2.cjs} +2 -2
- package/dist/chunk-KDRF3NR2.cjs.map +1 -0
- package/dist/{chunk-WYQILW5V.js → chunk-L2BYRYHC.js} +4 -4
- package/dist/{chunk-WYQILW5V.js.map → chunk-L2BYRYHC.js.map} +1 -1
- package/dist/{chunk-6NB73BXV.js → chunk-L5AUCL5P.js} +3 -3
- package/dist/{chunk-6NB73BXV.js.map → chunk-L5AUCL5P.js.map} +1 -1
- package/dist/{chunk-277UZV7X.cjs → chunk-NDQLPKBX.cjs} +315 -268
- package/dist/chunk-NDQLPKBX.cjs.map +1 -0
- package/dist/graph-merge/index.cjs +25 -25
- package/dist/graph-merge/index.d.cts +1 -1
- package/dist/graph-merge/index.d.ts +1 -1
- package/dist/graph-merge/index.js +4 -4
- package/dist/index.cjs +49 -49
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/interchange/index.cjs +22 -22
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +3 -3
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +10 -10
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +1 -1
- package/dist/{store-view-CNcOG8bQ.d.cts → store-view-D1F6KqsE.d.cts} +18 -1
- package/dist/{store-view-6C2vTWqf.d.ts → store-view-DdwBNjZQ.d.ts} +18 -1
- package/package.json +1 -1
- package/dist/chunk-277UZV7X.cjs.map +0 -1
- package/dist/chunk-2SO5I5AI.cjs.map +0 -1
- package/dist/chunk-DP7KC6CL.js.map +0 -1
- package/dist/chunk-EVFL2ZY5.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKDRF3NR2_cjs = require('./chunk-KDRF3NR2.cjs');
|
|
4
4
|
var chunkCVK4T34X_cjs = require('./chunk-CVK4T34X.cjs');
|
|
5
5
|
var chunkECU53PMN_cjs = require('./chunk-ECU53PMN.cjs');
|
|
6
6
|
var chunkARN3ZODS_cjs = require('./chunk-ARN3ZODS.cjs');
|
|
@@ -65,10 +65,10 @@ function rowToEdgeMeta(row) {
|
|
|
65
65
|
function runInWriteTransaction(ctx, backend, fn) {
|
|
66
66
|
const ownsWriteLock = "transaction" in backend && backend.capabilities.transactions;
|
|
67
67
|
return chunkECU53PMN_cjs.runOptionallyInTransaction(backend, async (target) => {
|
|
68
|
-
const lock = ctx.historyEnabled || ctx.revisionTrackingEnabled ? await
|
|
68
|
+
const lock = ctx.historyEnabled || ctx.revisionTrackingEnabled ? await chunkKDRF3NR2_cjs.lockRecordedGraphWrite(target, ctx.graphId) : chunkKDRF3NR2_cjs.uncapturedGraphWriteLock();
|
|
69
69
|
const result = await fn(target, lock);
|
|
70
70
|
if (ctx.revisionTrackingEnabled && !ctx.historyEnabled) {
|
|
71
|
-
await
|
|
71
|
+
await chunkKDRF3NR2_cjs.advanceRevisionClock(
|
|
72
72
|
target,
|
|
73
73
|
ctx.revisionSchema,
|
|
74
74
|
ctx.graphId,
|
|
@@ -91,7 +91,7 @@ async function checkDisjointnessConstraint(ctx, kind, id) {
|
|
|
91
91
|
for (const disjointKind of disjointKinds) {
|
|
92
92
|
const existing = await ctx.backend.getNode(ctx.graphId, disjointKind, id);
|
|
93
93
|
if (existing && !existing.deleted_at) {
|
|
94
|
-
const error =
|
|
94
|
+
const error = chunkKDRF3NR2_cjs.checkDisjointness(id, kind, [disjointKind], ctx.registry);
|
|
95
95
|
if (error) throw error;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -108,7 +108,7 @@ async function checkCardinalityConstraint(ctx, edgeKind, cardinality, fromKind,
|
|
|
108
108
|
fromKind,
|
|
109
109
|
fromId
|
|
110
110
|
});
|
|
111
|
-
const error =
|
|
111
|
+
const error = chunkKDRF3NR2_cjs.checkCardinality(
|
|
112
112
|
edgeKind,
|
|
113
113
|
fromKind,
|
|
114
114
|
fromId,
|
|
@@ -128,7 +128,7 @@ async function checkCardinalityConstraint(ctx, edgeKind, cardinality, fromKind,
|
|
|
128
128
|
toKind,
|
|
129
129
|
toId
|
|
130
130
|
});
|
|
131
|
-
const error =
|
|
131
|
+
const error = chunkKDRF3NR2_cjs.checkUniqueEdge(
|
|
132
132
|
edgeKind,
|
|
133
133
|
fromKind,
|
|
134
134
|
fromId,
|
|
@@ -150,7 +150,7 @@ async function checkCardinalityConstraint(ctx, edgeKind, cardinality, fromKind,
|
|
|
150
150
|
fromId,
|
|
151
151
|
activeOnly: true
|
|
152
152
|
});
|
|
153
|
-
const error =
|
|
153
|
+
const error = chunkKDRF3NR2_cjs.checkCardinality(
|
|
154
154
|
edgeKind,
|
|
155
155
|
fromKind,
|
|
156
156
|
fromId,
|
|
@@ -280,8 +280,8 @@ function createNodeBatchValidationBackend(graphId, registry, backend) {
|
|
|
280
280
|
}
|
|
281
281
|
function registerPendingUniqueEntries(kind, id, props, constraints) {
|
|
282
282
|
for (const constraint of constraints) {
|
|
283
|
-
if (!
|
|
284
|
-
const key =
|
|
283
|
+
if (!chunkKDRF3NR2_cjs.checkWherePredicate(constraint, props)) continue;
|
|
284
|
+
const key = chunkKDRF3NR2_cjs.computeUniqueKey(
|
|
285
285
|
props,
|
|
286
286
|
constraint.fields,
|
|
287
287
|
constraint.collation
|
|
@@ -294,7 +294,7 @@ function createNodeBatchValidationBackend(graphId, registry, backend) {
|
|
|
294
294
|
);
|
|
295
295
|
pendingUniqueOwners.set(concreteEntryKey, id);
|
|
296
296
|
if (constraint.scope !== "kind") {
|
|
297
|
-
const kindsToCheck =
|
|
297
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
298
298
|
kind,
|
|
299
299
|
constraint.scope,
|
|
300
300
|
registry
|
|
@@ -313,12 +313,12 @@ function createNodeBatchValidationBackend(graphId, registry, backend) {
|
|
|
313
313
|
}
|
|
314
314
|
function registerAppliedNodeUpdate(kind, id, oldProps, newProps, constraints) {
|
|
315
315
|
for (const constraint of constraints) {
|
|
316
|
-
const oldApplies =
|
|
317
|
-
const newApplies =
|
|
318
|
-
const oldKey = oldApplies ?
|
|
319
|
-
const newKey = newApplies ?
|
|
316
|
+
const oldApplies = chunkKDRF3NR2_cjs.checkWherePredicate(constraint, oldProps);
|
|
317
|
+
const newApplies = chunkKDRF3NR2_cjs.checkWherePredicate(constraint, newProps);
|
|
318
|
+
const oldKey = oldApplies ? chunkKDRF3NR2_cjs.computeUniqueKey(oldProps, constraint.fields, constraint.collation) : void 0;
|
|
319
|
+
const newKey = newApplies ? chunkKDRF3NR2_cjs.computeUniqueKey(newProps, constraint.fields, constraint.collation) : void 0;
|
|
320
320
|
if (oldKey === newKey) continue;
|
|
321
|
-
const kindsToCheck =
|
|
321
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
322
322
|
kind,
|
|
323
323
|
constraint.scope,
|
|
324
324
|
registry
|
|
@@ -401,8 +401,8 @@ async function finishNodeCreatePreparation(ctx, draft, backend) {
|
|
|
401
401
|
backend
|
|
402
402
|
};
|
|
403
403
|
await checkDisjointnessConstraint(constraintContext, kind, id);
|
|
404
|
-
await
|
|
405
|
-
|
|
404
|
+
await chunkKDRF3NR2_cjs.checkUniquenessConstraints(
|
|
405
|
+
chunkKDRF3NR2_cjs.createUniquenessContext(ctx.graphId, ctx.registry, backend),
|
|
406
406
|
kind,
|
|
407
407
|
id,
|
|
408
408
|
validatedProps,
|
|
@@ -432,8 +432,8 @@ async function validateAndPrepareNodeCreate(ctx, input, id, backend, options) {
|
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
434
|
async function finalizeNodeCreateBatch(ctx, preparedCreates, backend, lock) {
|
|
435
|
-
await
|
|
436
|
-
|
|
435
|
+
await chunkKDRF3NR2_cjs.applyNodeInsertSideEffectsBatch(
|
|
436
|
+
chunkKDRF3NR2_cjs.createNodeWriteContext(ctx.graphId, ctx.registry, lock),
|
|
437
437
|
preparedCreates.map((prepared) => ({
|
|
438
438
|
kind: prepared.kind,
|
|
439
439
|
id: prepared.id,
|
|
@@ -445,8 +445,8 @@ async function finalizeNodeCreateBatch(ctx, preparedCreates, backend, lock) {
|
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
447
|
async function finalizeNodeCreate(ctx, prepared, backend, lock) {
|
|
448
|
-
await
|
|
449
|
-
|
|
448
|
+
await chunkKDRF3NR2_cjs.applyNodeInsertSideEffects(
|
|
449
|
+
chunkKDRF3NR2_cjs.createNodeWriteContext(ctx.graphId, ctx.registry, lock),
|
|
450
450
|
{
|
|
451
451
|
kind: prepared.kind,
|
|
452
452
|
id: prepared.id,
|
|
@@ -501,7 +501,7 @@ async function performNodeUpdate(ctx, input, backend, lock, options) {
|
|
|
501
501
|
);
|
|
502
502
|
const nodeKind = registration.type;
|
|
503
503
|
const validTo = chunkZBV4LQD2_cjs.validateOptionalCanonicalIsoDate(input.validTo, "validTo");
|
|
504
|
-
const writeContext =
|
|
504
|
+
const writeContext = chunkKDRF3NR2_cjs.createNodeWriteContext(ctx.graphId, ctx.registry, lock);
|
|
505
505
|
const shared = {
|
|
506
506
|
schema: nodeKind.schema,
|
|
507
507
|
validatedProps,
|
|
@@ -509,7 +509,7 @@ async function performNodeUpdate(ctx, input, backend, lock, options) {
|
|
|
509
509
|
...validTo !== void 0 && { validTo }
|
|
510
510
|
};
|
|
511
511
|
if (options?.clearDeleted) {
|
|
512
|
-
const row2 = await
|
|
512
|
+
const row2 = await chunkKDRF3NR2_cjs.applyNodeUpdate(
|
|
513
513
|
writeContext,
|
|
514
514
|
{ ...shared, existing, clearDeleted: true },
|
|
515
515
|
backend
|
|
@@ -517,7 +517,7 @@ async function performNodeUpdate(ctx, input, backend, lock, options) {
|
|
|
517
517
|
return rowToNode(row2);
|
|
518
518
|
}
|
|
519
519
|
if (!chunkECU53PMN_cjs.isLiveNodeRow(existing)) throw new chunkKTBTSHU6_cjs.NodeNotFoundError(kind, id);
|
|
520
|
-
const row = await
|
|
520
|
+
const row = await chunkKDRF3NR2_cjs.applyNodeUpdate(
|
|
521
521
|
writeContext,
|
|
522
522
|
{ ...shared, existing },
|
|
523
523
|
backend
|
|
@@ -545,13 +545,13 @@ async function primeBatchValidationCaches(ctx, drafts, backend, seams) {
|
|
|
545
545
|
const groups = /* @__PURE__ */ new Map();
|
|
546
546
|
for (const draft of drafts) {
|
|
547
547
|
for (const constraint of draft.uniqueConstraints) {
|
|
548
|
-
if (!
|
|
549
|
-
const key =
|
|
548
|
+
if (!chunkKDRF3NR2_cjs.checkWherePredicate(constraint, draft.validatedProps)) continue;
|
|
549
|
+
const key = chunkKDRF3NR2_cjs.computeUniqueKey(
|
|
550
550
|
draft.validatedProps,
|
|
551
551
|
constraint.fields,
|
|
552
552
|
constraint.collation
|
|
553
553
|
);
|
|
554
|
-
const kindsToCheck =
|
|
554
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
555
555
|
draft.kind,
|
|
556
556
|
constraint.scope,
|
|
557
557
|
ctx.registry
|
|
@@ -597,7 +597,7 @@ async function prepareBatchCreates(ctx, inputs, backend, options) {
|
|
|
597
597
|
seedUniqueRow
|
|
598
598
|
} = createNodeBatchValidationBackend(ctx.graphId, ctx.registry, backend);
|
|
599
599
|
const drafts = inputs.map(
|
|
600
|
-
(input) => draftNodeCreate(ctx, input, input.id ??
|
|
600
|
+
(input) => draftNodeCreate(ctx, input, input.id ?? chunkKDRF3NR2_cjs.generateId(), options)
|
|
601
601
|
);
|
|
602
602
|
await primeBatchValidationCaches(ctx, drafts, backend, {
|
|
603
603
|
seedNodeRow,
|
|
@@ -673,7 +673,7 @@ async function batchCheckUniqueAcrossKinds(backend, graphId, constraintName, uni
|
|
|
673
673
|
}
|
|
674
674
|
async function executeNodeCreateInternal(ctx, input, backend, options) {
|
|
675
675
|
const kind = input.kind;
|
|
676
|
-
const id = input.id ??
|
|
676
|
+
const id = input.id ?? chunkKDRF3NR2_cjs.generateId();
|
|
677
677
|
const opContext = ctx.createOperationContext("create", "node", kind, id);
|
|
678
678
|
const shouldReturnRow = options?.returnRow ?? true;
|
|
679
679
|
return runHookedWriteOperation(
|
|
@@ -692,8 +692,8 @@ async function executeNodeCreateInternal(ctx, input, backend, options) {
|
|
|
692
692
|
if (shouldReturnRow) {
|
|
693
693
|
row = await target.insertNode(prepared.insertParams);
|
|
694
694
|
} else {
|
|
695
|
-
await
|
|
696
|
-
|
|
695
|
+
await chunkKDRF3NR2_cjs.runInsertNoReturn(
|
|
696
|
+
chunkKDRF3NR2_cjs.nodeInsertDispatch(target),
|
|
697
697
|
prepared.insertParams
|
|
698
698
|
);
|
|
699
699
|
}
|
|
@@ -724,7 +724,7 @@ async function executeNodeCreateNoReturnBatch(ctx, inputs, backend) {
|
|
|
724
724
|
inputs,
|
|
725
725
|
target
|
|
726
726
|
);
|
|
727
|
-
await
|
|
727
|
+
await chunkKDRF3NR2_cjs.runInsertBatch(chunkKDRF3NR2_cjs.nodeInsertDispatch(target), batchInsertParams);
|
|
728
728
|
await finalizeNodeCreateBatch(ctx, preparedCreates, target, lock);
|
|
729
729
|
});
|
|
730
730
|
}
|
|
@@ -737,8 +737,8 @@ async function executeNodeCreateBatch(ctx, inputs, backend, options) {
|
|
|
737
737
|
target,
|
|
738
738
|
options
|
|
739
739
|
);
|
|
740
|
-
const rows = await
|
|
741
|
-
|
|
740
|
+
const rows = await chunkKDRF3NR2_cjs.runInsertBatchReturning(
|
|
741
|
+
chunkKDRF3NR2_cjs.nodeInsertDispatch(target),
|
|
742
742
|
batchInsertParams
|
|
743
743
|
);
|
|
744
744
|
await finalizeNodeCreateBatch(ctx, preparedCreates, target, lock);
|
|
@@ -778,8 +778,8 @@ async function executeNodeDelete(ctx, kind, id, backend) {
|
|
|
778
778
|
const registration = getNodeRegistration(ctx.graph, kind);
|
|
779
779
|
const preflight = await target.getNode(ctx.graphId, kind, id);
|
|
780
780
|
if (!preflight || !chunkECU53PMN_cjs.isLiveNodeRow(preflight)) return;
|
|
781
|
-
await
|
|
782
|
-
|
|
781
|
+
await chunkKDRF3NR2_cjs.applyNodeSoftDelete(
|
|
782
|
+
chunkKDRF3NR2_cjs.createNodeWriteContext(ctx.graphId, ctx.registry, lock),
|
|
783
783
|
{
|
|
784
784
|
existing: preflight,
|
|
785
785
|
schema: registration.type.schema,
|
|
@@ -801,8 +801,8 @@ async function executeNodeHardDelete(ctx, kind, id, backend) {
|
|
|
801
801
|
backend,
|
|
802
802
|
async (target, lock) => {
|
|
803
803
|
const registration = getNodeRegistration(ctx.graph, kind);
|
|
804
|
-
await
|
|
805
|
-
|
|
804
|
+
await chunkKDRF3NR2_cjs.applyNodeHardDelete(
|
|
805
|
+
chunkKDRF3NR2_cjs.createNodeWriteContext(ctx.graphId, ctx.registry, lock),
|
|
806
806
|
{
|
|
807
807
|
kind,
|
|
808
808
|
id,
|
|
@@ -823,7 +823,7 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
|
|
|
823
823
|
operation: "create"
|
|
824
824
|
});
|
|
825
825
|
const constraint = resolveConstraint(ctx.graph, kind, constraintName);
|
|
826
|
-
if (!
|
|
826
|
+
if (!chunkKDRF3NR2_cjs.checkWherePredicate(constraint, validatedProps)) {
|
|
827
827
|
const node = await executeNodeCreate(
|
|
828
828
|
ctx,
|
|
829
829
|
{ kind, props: validatedProps },
|
|
@@ -832,12 +832,12 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
|
|
|
832
832
|
);
|
|
833
833
|
return { node, action: "created" };
|
|
834
834
|
}
|
|
835
|
-
const key =
|
|
835
|
+
const key = chunkKDRF3NR2_cjs.computeUniqueKey(
|
|
836
836
|
validatedProps,
|
|
837
837
|
constraint.fields,
|
|
838
838
|
constraint.collation
|
|
839
839
|
);
|
|
840
|
-
const kindsToCheck =
|
|
840
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
841
841
|
kind,
|
|
842
842
|
constraint.scope,
|
|
843
843
|
ctx.registry
|
|
@@ -906,13 +906,13 @@ async function executeNodeFindByConstraint(ctx, kind, constraintName, props, bac
|
|
|
906
906
|
operation: "create"
|
|
907
907
|
});
|
|
908
908
|
const constraint = resolveConstraint(ctx.graph, kind, constraintName);
|
|
909
|
-
if (!
|
|
910
|
-
const key =
|
|
909
|
+
if (!chunkKDRF3NR2_cjs.checkWherePredicate(constraint, validatedProps)) return void 0;
|
|
910
|
+
const key = chunkKDRF3NR2_cjs.computeUniqueKey(
|
|
911
911
|
validatedProps,
|
|
912
912
|
constraint.fields,
|
|
913
913
|
constraint.collation
|
|
914
914
|
);
|
|
915
|
-
const kindsToCheck =
|
|
915
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
916
916
|
kind,
|
|
917
917
|
constraint.scope,
|
|
918
918
|
ctx.registry
|
|
@@ -942,8 +942,8 @@ function validateAndComputeKeys(nodeKind, kind, constraint, items) {
|
|
|
942
942
|
kind,
|
|
943
943
|
operation: "create"
|
|
944
944
|
});
|
|
945
|
-
const applies =
|
|
946
|
-
const key = applies ?
|
|
945
|
+
const applies = chunkKDRF3NR2_cjs.checkWherePredicate(constraint, validatedProps);
|
|
946
|
+
const key = applies ? chunkKDRF3NR2_cjs.computeUniqueKey(
|
|
947
947
|
validatedProps,
|
|
948
948
|
constraint.fields,
|
|
949
949
|
constraint.collation
|
|
@@ -966,7 +966,7 @@ async function executeNodeBulkFindByConstraint(ctx, kind, constraintName, items,
|
|
|
966
966
|
const constraint = resolveConstraint(ctx.graph, kind, constraintName);
|
|
967
967
|
const validated = validateAndComputeKeys(nodeKind, kind, constraint, items);
|
|
968
968
|
const uniqueKeys = collectUniqueKeys(validated);
|
|
969
|
-
const kindsToCheck =
|
|
969
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
970
970
|
kind,
|
|
971
971
|
constraint.scope,
|
|
972
972
|
ctx.registry
|
|
@@ -1225,7 +1225,7 @@ function capMatchesPerGroup(matches, limitPerInput) {
|
|
|
1225
1225
|
return capped;
|
|
1226
1226
|
}
|
|
1227
1227
|
async function hydrateNodesById(backend, graphId, kind, ids) {
|
|
1228
|
-
const rowsById = await
|
|
1228
|
+
const rowsById = await chunkKDRF3NR2_cjs.getNodeRowsByIds(backend, graphId, kind, ids);
|
|
1229
1229
|
const nodesById = /* @__PURE__ */ new Map();
|
|
1230
1230
|
for (const [id, row] of rowsById) {
|
|
1231
1231
|
if (row.deleted_at !== void 0) continue;
|
|
@@ -1241,7 +1241,7 @@ async function executeNodeBulkGetOrCreateByConstraint(ctx, kind, constraintName,
|
|
|
1241
1241
|
const constraint = resolveConstraint(ctx.graph, kind, constraintName);
|
|
1242
1242
|
const validated = validateAndComputeKeys(nodeKind, kind, constraint, items);
|
|
1243
1243
|
const uniqueKeys = collectUniqueKeys(validated);
|
|
1244
|
-
const kindsToCheck =
|
|
1244
|
+
const kindsToCheck = chunkKDRF3NR2_cjs.getKindsForUniquenessCheck(
|
|
1245
1245
|
kind,
|
|
1246
1246
|
constraint.scope,
|
|
1247
1247
|
ctx.registry
|
|
@@ -1363,5 +1363,5 @@ exports.rowToNode = rowToNode;
|
|
|
1363
1363
|
exports.rowToNodeMeta = rowToNodeMeta;
|
|
1364
1364
|
exports.runHookedWriteOperation = runHookedWriteOperation;
|
|
1365
1365
|
exports.runInWriteTransaction = runInWriteTransaction;
|
|
1366
|
-
//# sourceMappingURL=chunk-
|
|
1367
|
-
//# sourceMappingURL=chunk-
|
|
1366
|
+
//# sourceMappingURL=chunk-BLBG2VZ5.cjs.map
|
|
1367
|
+
//# sourceMappingURL=chunk-BLBG2VZ5.cjs.map
|