mirror of
https://github.com/reconurge/flowsint.git
synced 2026-04-30 03:09:05 -05:00
feat: update 003_migrate_v1_format
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user