grafeo-ogm 2.4.5 → 2.4.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.7 (2026-10-18) — `db push --force-drop` only drops constraints grafeo created
4
+
5
+ ### 🐛 `--force-drop` could drop constraints on labels grafeo doesn't manage
6
+
7
+ `db push` decided whether a live constraint was grafeo's from its **name alone**: any name that started with a known label and ended in `_unique` qualified. With `type Book` in the SDL, a DBA's `Book_Archive_code_unique` constraint on the **unrelated** label `Book_Archive` looked like "label `Book`, property `Archive_code`". `db push --force-drop --yes` then dropped it. A NODE KEY or existence constraint that happened to share the naming shape qualified too.
8
+
9
+ A constraint is now treated as a droppable orphan only when its **definition** proves grafeo would have created it:
10
+
11
+ - the type is `UNIQUENESS`
12
+ - it covers exactly one label, and that label is in the schema
13
+ - it covers exactly one property
14
+ - its name is exactly `{Label}_{prop}_unique` for that label and property
15
+
16
+ `db push` now reads `labelsOrTypes` and `properties` from `SHOW CONSTRAINTS` to check this. If a server doesn't report those columns, nothing is treated as droppable: a missed orphan only means "kept", while a wrong drop can lose a constraint. The set of constraints `--force-drop` can drop only ever shrinks.
17
+
18
+ ## 2.4.6 (2026-10-18) — `createMany` writes every item's fields
19
+
20
+ ### 🐛 `createMany` took its columns from the first item only
21
+
22
+ The column list came from `data[0]`'s keys, so with mixed items:
23
+
24
+ - **Fields only later items supplied were silently dropped.** `createMany({ data: [{ email: 'a' }, { email: 'b', name: 'B', age: 4 }] })` stored `b` without `name` or `age`.
25
+ - **An `@id` supplied by some items left the others with a null id.**
26
+ - **A `@default` column overwrote values that later items supplied** (`status: 'banned'` was stored as the default `'active'`).
27
+
28
+ The column set is now the union of every item's keys. An item that omits a field gets what `create()` would give it, which is what the README documents for `@default`:
29
+
30
+ - a generated `@id`, if the field is an `@id`
31
+ - the `@default` value, if the field has one
32
+ - nothing, otherwise
33
+
34
+ An explicit `null` stays `null`. With `skipDuplicates`, the `MERGE` key is now the `@id`/`@unique` fields that **every** item supplies, so no item ever merges on a null. Batches where every item has the same keys emit the same Cypher as before.
35
+
36
+ **Unchanged on purpose:** a relationship field is still rejected only in the **first** item. In later items it is still skipped without being written. Rejecting it in every item would make calls that succeed today throw, so that is tracked as a separate change.
37
+
38
+ A new opt-in live suite, `tests/integration/create-many.spec.ts`, covers each case. Against Neo4j 5.26.32, the 4 bug cases fail without the fix.
39
+
3
40
  ## 2.4.5 (2026-10-18) — nested creates inside `update` store edge properties
4
41
 
5
42
  ### 🐛 `edge` was silently dropped on a nested `create` inside `update`
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../../../src/cli/introspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,gBAAgB,CAAC;AA6BjE;;;GAGG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAgBrB"}
1
+ {"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../../../src/cli/introspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,gBAAgB,CAAC;AAuDjE;;;GAGG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAgBrB"}
@@ -25,7 +25,32 @@ function toLiveItem(record) {
25
25
  }
26
26
  if (typeof name !== 'string' || name.length === 0)
27
27
  return null;
28
- return { name, type: typeof type === 'string' ? type : String(type ?? '') };
28
+ const item = {
29
+ name,
30
+ type: typeof type === 'string' ? type : String(type ?? ''),
31
+ };
32
+ // The definition columns let the planner attribute a constraint by what
33
+ // it constrains, not just its name. Absent on a server → left undefined,
34
+ // and the planner then never treats the row as droppable.
35
+ const labels = stringList(record, 'labelsOrTypes');
36
+ const props = stringList(record, 'properties');
37
+ if (labels)
38
+ item.labelsOrTypes = labels;
39
+ if (props)
40
+ item.properties = props;
41
+ return item;
42
+ }
43
+ function stringList(record, key) {
44
+ let value;
45
+ try {
46
+ value = record.get(key);
47
+ }
48
+ catch {
49
+ return undefined;
50
+ }
51
+ return Array.isArray(value) && value.every((v) => typeof v === 'string')
52
+ ? value
53
+ : undefined;
29
54
  }
30
55
  /**
31
56
  * Fetch the live constraint/index state for the push planner. Read-only —
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.js","sourceRoot":"","sources":["../../../src/cli/introspect.ts"],"names":[],"mappings":";;AAkCA,0CAmBC;AAlDD;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,MAEnB;IACC,IAAI,IAAa,CAAC;IAClB,IAAI,IAAa,CAAC;IAClB,IAAI,CAAC;QACH,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,GAAG,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,eAAe,C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AG,CAAC,kBAAkB,CAAC,CAAC;QAChE,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACxD,OAAO;YACL,WAAW,EAAE,iBAAiB,CAAC,OAAO;iBACnC,GAAG,CAAC,UAAU,CAAC;iBACf,MAAM,CAAC,CAAC,CAAC,EAAuB,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;YACjD,OAAO,EAAE,aAAa,CAAC,OAAO;iBAC3B,GAAG,CAAC,UAAU,CAAC;iBACf,MAAM,CAAC,CAAC,CAAC,EAAuB,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;SAClD,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC"}
@@ -8,6 +8,10 @@ export interface LiveSchemaItem {
8
8
  * VECTOR / TEXT / POINT / LOOKUP for indexes.
9
9
  */
10
10
  type: string;
11
+ /** SHOW `labelsOrTypes` column, when the server exposes it. */
12
+ labelsOrTypes?: string[];
13
+ /** SHOW `properties` column, when the server exposes it. */
14
+ properties?: string[];
11
15
  }
12
16
  export interface LiveSchema {
13
17
  constraints: LiveSchemaItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"push-planner.d.ts","sourceRoot":"","sources":["../../../src/cli/push-planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAmBtD,2DAA2D;AAC3D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC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,eAAe,EAAE,CAAC;IAC1B,2CAA2C;IAC3C,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,wEAAwE;IACxE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,0EAA0E;IAC1E,WAAW,EAAE,wBAAwB,EAAE,CAAC;CACzC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,UAAU,EAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GACvD,QAAQ,CAoEV"}
@@ -68,7 +68,7 @@ function planSchemaSync(schema, live, vectorConfig) {
68
68
  // Grafeo-attributable AND a safe identifier → droppable orphan. A name
69
69
  // that matches the convention shape but carries unsafe characters (a
70
70
  // hostile live constraint) is demoted to `unmanaged`, never dropped.
71
- if (isGrafeoConstraintName(constraint.name, knownLabels) &&
71
+ if (isGrafeoConstraint(constraint, knownLabels) &&
72
72
  isSafeIdentifier(constraint.name))
73
73
  orphans.push({
74
74
  name: constraint.name,
@@ -94,21 +94,28 @@ function planSchemaSync(schema, live, vectorConfig) {
94
94
  };
95
95
  }
96
96
  /**
97
- * Does `name` match `{Label}_{prop}_unique` for a label the schema knows?
98
- * Labels may themselves contain underscores, so instead of one ambiguous
99
- * regex we test each known label as a prefix.
97
+ * Is this live constraint one grafeo itself would have created — i.e. a
98
+ * single-label, single-property UNIQUENESS constraint on a label the schema
99
+ * knows, named exactly `uniqueConstraintName(label, prop)`?
100
+ *
101
+ * Decided from the constraint's DEFINITION, not its name alone. Pre-2.4.7
102
+ * any name starting with a known label passed (`Book_Archive_code_unique`
103
+ * looked like `Book` + prop `Archive_code`), so `--force-drop` could drop a
104
+ * constraint on a label grafeo doesn't manage — or a NODE KEY / existence
105
+ * constraint that merely shared the naming shape. Without the definition
106
+ * columns it is never treated as droppable: a missed orphan is harmless, a
107
+ * wrong drop is not.
100
108
  */
101
- function isGrafeoConstraintName(name, knownLabels) {
102
- if (!name.endsWith('_unique'))
109
+ function isGrafeoConstraint(constraint, knownLabels) {
110
+ if (constraint.type && constraint.type !== 'UNIQUENESS')
103
111
  return false;
104
- for (const label of knownLabels) {
105
- const prefix = `${label}_`;
106
- if (!name.startsWith(prefix))
107
- continue;
108
- const prop = name.slice(prefix.length, -'_unique'.length);
109
- if (prop.length > 0 && /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(prop))
110
- return true;
111
- }
112
- return false;
112
+ const labels = constraint.labelsOrTypes;
113
+ const props = constraint.properties;
114
+ if (!labels || !props || labels.length !== 1 || props.length !== 1)
115
+ return false;
116
+ const [label] = labels;
117
+ const [prop] = props;
118
+ return (knownLabels.has(label) &&
119
+ constraint.name === (0, index_statements_1.uniqueConstraintName)(label, prop));
113
120
  }
114
121
  //# sourceMappingURL=push-planner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"push-planner.js","sourceRoot":"","sources":["../../../src/cli/push-planner.ts"],"names":[],"mappings":";;AAgFA,wCAwEC;AAxJD,iEAQoC;AAEpC,oDAA2D;AAE3D;;;;;;GAMG;AACH,SAAS,gBAAgB,CAAC,IAAY;IACpC,IAAI,CAAC;QACH,IAAA,iCAAoB,EAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAuCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,cAAc,CAC5B,MAAsB,EACtB,IAAgB,EAChB,YAAwD;IAExD,MAAM,MAAM,GAAG,IAAA,6CAA0B,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAChE,MAAM,OAAO,GAAsB;QACjC,GAAG,IAAA,kDAA+B,EAAC,MAAM,CAAC;QAC1C,GAAG,IAAA,8CAA2B,EAAC,MAAM,CAAC;QACtC,GAAG,IAAA,sDAAmC,EA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zB"}
@@ -603,19 +603,41 @@ class MutationCompiler {
603
603
  const labelStr = this.getCachedLabelString(nodeDef);
604
604
  const lines = [];
605
605
  const params = {};
606
- // Validate and sanitize: only scalar properties allowed
606
+ // Validate and sanitize: only scalar properties allowed. The column set
607
+ // is the UNION of every item's keys — pre-2.4.6 it was `data[0]`'s
608
+ // keys only, so a field that only later items supplied was silently
609
+ // dropped (and a relationship field there was neither rejected nor
610
+ // written).
607
611
  const scalarKeys = [];
608
- for (const key of Object.keys(data[0])) {
609
- if (nodeDef.relationships.has(key))
610
- throw new errors_1.OGMError(`createMany does not support relationship fields. Found: "${key}". Use create() for nested operations.`);
611
- (0, validation_1.assertSafePropertyName)(key, 'createMany property');
612
- scalarKeys.push(key);
613
- }
612
+ for (const [index, item] of data.entries())
613
+ for (const key of Object.keys(item)) {
614
+ if (item[key] === undefined || scalarKeys.includes(key))
615
+ continue;
616
+ if (nodeDef.relationships.has(key)) {
617
+ // Only the first item's relationship fields have ever been
618
+ // rejected; in later items they were (and still are) skipped
619
+ // unwritten. Rejecting them everywhere would make calls that
620
+ // succeed today throw — tracked as a separate, breaking change.
621
+ if (index > 0)
622
+ continue;
623
+ throw new errors_1.OGMError(`createMany does not support relationship fields. Found: "${key}". Use create() for nested operations.`);
624
+ }
625
+ (0, validation_1.assertSafePropertyName)(key, 'createMany property');
626
+ scalarKeys.push(key);
627
+ }
614
628
  // Identify @id (generated) fields that are NOT provided in data
615
629
  const generatedFields = [];
616
630
  for (const [, propDef] of nodeDef.properties)
617
631
  if (propDef.isGenerated && !scalarKeys.includes(propDef.name))
618
632
  generatedFields.push(propDef.name);
633
+ // A @id column supplied by SOME items only: the others still get a
634
+ // generated id (as create() would), never null.
635
+ const isPartialGenerated = (key) => Boolean(nodeDef.properties.get(key)?.isGenerated) &&
636
+ data.some((d) => d[key] === undefined || d[key] === null);
637
+ const columnExpr = (key) => {
638
+ const expr = (0, write_coercion_1.wrapListItemExpr)(`item.${(0, validation_1.escapeIdentifier)(key)}`, data.map((d) => d[key]), nodeDef.properties.get(key));
639
+ return isPartialGenerated(key) ? `coalesce(${expr}, randomUUID())` : expr;
640
+ };
619
641
  // Whole-column `@default`s: applied only when NO item supplies the
620
642
  // field. Per-item gaps inside a provided column stay null — one
621
643
  // createMany batch shares a single Cypher text, and a per-item
@@ -628,22 +650,34 @@ class MutationCompiler {
628
650
  !propDef.isCypher &&
629
651
  !scalarKeys.includes(propDef.name))
630
652
  defaultedProps.push(propDef);
631
- // Build sanitized items (strip undefined values)
653
+ // Build sanitized items (strip undefined values). A `@default` field
654
+ // whose column is supplied by only some items is filled per item for
655
+ // the others — exactly what create() gives an item that omits it. An
656
+ // explicit `null` is kept as null.
632
657
  const sanitizedItems = data.map((item) => {
633
658
  const sanitized = {};
634
- for (const key of scalarKeys)
659
+ for (const key of scalarKeys) {
660
+ const propDef = nodeDef.properties.get(key);
635
661
  if (item[key] !== undefined)
636
- sanitized[key] = (0, write_coercion_1.coerceWriteValue)(item[key], nodeDef.properties.get(key));
662
+ sanitized[key] = (0, write_coercion_1.coerceWriteValue)(item[key], propDef);
663
+ else if (propDef?.defaultValue !== undefined &&
664
+ !propDef.isGenerated &&
665
+ !propDef.isCypher)
666
+ sanitized[key] = (0, write_coercion_1.resolveDefaultWriteValue)(propDef);
667
+ }
637
668
  return sanitized;
638
669
  });
639
670
  params.items = sanitizedItems;
640
671
  lines.push('UNWIND $items AS item');
641
672
  if (skipDuplicates) {
642
- // Find unique/id fields present in data for MERGE key
673
+ // MERGE key: the unique/id fields EVERY item supplies — an item
674
+ // missing one would MERGE on null, which Neo4j rejects.
643
675
  const mergeKeys = [];
644
676
  for (const key of scalarKeys) {
645
677
  const propDef = nodeDef.properties.get(key);
646
- if (propDef && (propDef.isUnique || propDef.isGenerated))
678
+ if (propDef &&
679
+ (propDef.isUnique || propDef.isGenerated) &&
680
+ data.every((d) => d[key] !== undefined && d[key] !== null))
647
681
  mergeKeys.push(key);
648
682
  }
649
683
  if (mergeKeys.length === 0)
@@ -657,7 +691,7 @@ class MutationCompiler {
657
691
  const onCreateSets = [];
658
692
  for (const key of scalarKeys)
659
693
  if (!mergeKeys.includes(key))
660
- onCreateSets.push(`n.${(0, validation_1.escapeIdentifier)(key)} = ${(0, write_coercion_1.wrapListItemExpr)(`item.${(0, validation_1.escapeIdentifier)(key)}`, data.map((d) => d[key]), nodeDef.properties.get(key))}`);
694
+ onCreateSets.push(`n.${(0, validation_1.escapeIdentifier)(key)} = ${columnExpr(key)}`);
661
695
  for (const field of generatedFields)
662
696
  onCreateSets.push(`n.${(0, validation_1.escapeIdentifier)(field)} = randomUUID()`);
663
697
  for (const propDef of defaultedProps) {
@@ -675,7 +709,7 @@ class MutationCompiler {
675
709
  for (const field of generatedFields)
676
710
  propParts.push(`${(0, validation_1.escapeIdentifier)(field)}: randomUUID()`);
677
711
  for (const key of scalarKeys)
678
- propParts.push(`${(0, validation_1.escapeIdentifier)(key)}: ${(0, write_coercion_1.wrapListItemExpr)(`item.${(0, validation_1.escapeIdentifier)(key)}`, data.map((d) => d[key]), nodeDef.properties.get(key))}`);
712
+ propParts.push(`${(0, validation_1.escapeIdentifier)(key)}: ${columnExpr(key)}`);
679
713
  for (const propDef of defaultedProps) {
680
714
  const paramName = `default_${propDef.name}`;
681
715
  const bound = (0, write_coercion_1.resolveDefaultWriteValue)(propDef);