ShiftLeftSecurity / overflowdb

ShiftLeft OverflowDB
Apache License 2.0
112 stars 21 forks source link

write cypher files with import column mappings #301

Closed mpollmeier closed 2 years ago

mpollmeier commented 2 years ago

Neo4j has several exchange formats (a few csvs, graphml, ...), but none of them seem to work... When I followed the (well-written) docs I couldn't find a single format that even passed a simple round-trip test, i.e. export and import, even using their test data.

Instead, our exporter now creates a separate file for each node|edge type: the cypher query to read the _data.csv as a csv and map it's columns to the correct properties, converting them to the correct value types.