This release of Data Importer brings two new features:
We've made a slight tweak to the Preview feature, allowing you to optionally preview selected parts of your our graph. If you have a particularly complex model, it can sometimes be hard to see how all the different nodes and relationship types being previewed are linking. In these scenarios you can use "Preview selected" to only preview selected parts of the model. This can help you validate specific parts of the model are mapped as expected. In the example below, only the Product, Supplier and SUPPLIES parts of the model will be previewed when using the "Preview selected" option.
Generate Cypher script
The Data Importer UI gives you a convenient way to generate your graph model and map data, but what happens if you want to take the import logic and use it somewhere else without the UI? Or what if the Data Importer UI doesn't quite allow the complex transformations that you need?
For these scenarios, we are now providing you the option to view and download a Cypher script representing your model and mapping. You can use these as-is, or adapt for more complex needs.
Examples of where you might use this generated code include:
- The Workspace Query UI. Note that the files will need to be accessible to the DBMS you are connected to. At present this means Aura customers will need their files accessible on a public URL for the LOAD CSVcommand to access them.
- On the command line via cypher-shell
- Driver code - De-compose the script to re-use the CREATE CONSTRAINTandMERGEstatements to implement your loads
The load script itself is commented to help you understand the purpose of the different parts and where you might need to make changes, depending on where you're running it.
You can also choose to download the files with your script, which will give you a handy zip of the script and your files.
We hope you enjoy using these new features and as always please head over to https://feedback.neo4j.com/data-importer with any feedback.