Can we do an incremental bulk import with just relationships

I wanted to perform an incremental import on an existing database using the bulk import, which basically adds relationships between nodes in the graph.

Hence, I do not have any node CSV files for the import

And I get this error while importing :

Missing required option: '--nodes=[<label>[:<label>]...=]<files>'

Is there any way to bypass this need for node files?

TIA,
Aman

Hello @aman.negi :slight_smile:

It's not possible right now because it means you already have data in the database (doc):

The neo4j-admin import command does not create a database, the command only imports data and make it available for the database. The database must not exist before the neo4j-admin import command has been executed, and the database should be created afterwards. The command will exit with an error message if the database already exists.

Best regards,
Cobra

hey @cobra ,

I think as of version 5 of neo4j we can use incremental import using the admin tool.
here is the ref : Import - Operations Manual

to bypass this error I made a dummy node to import which I delete after importing the relationships to the DB.

But we can do an incremental bulk import on an existing database

Yeah, indeed, they added this possibility:)

Nice bypass but hopefully in the future, they will let the possibility to only import relationships.

Best regards,
Cobra

1 Like