Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: update 003_migrate_v1_format

dextmorgnb18733d1583b
diff --git a/neo4j-migrations/003_migrate_v1_format.js b/neo4j-migrations/003_migrate_v1_format.js
index cb72ec5f..adb591b5 100644
--- a/neo4j-migrations/003_migrate_v1_format.js
+++ b/neo4j-migrations/003_migrate_v1_format.js
@@ -27,6 +27,8 @@
* - Processes in batches to handle large datasets
*/
+import neo4j from "neo4j-driver";
+
// Reserved properties that should NOT be moved to nodeProperties
const RESERVED_PROPERTIES = new Set([
"id",
@@ -112,7 +114,7 @@ export async function migrate(driver, session, dryRun) {
RETURN elementId(n) AS elementId, n, labels(n) AS labels
LIMIT $limit
`,
- { limit: BATCH_SIZE }
+ { limit: neo4j.int(BATCH_SIZE) }
);
if (batchResult.records.length === 0) {