neo4j/neo4j-documentation

Too many mandatory fields for relationships in the import tool's doc

Closed this issue · 1 comments

While working on neo4j-contrib/neo4j-apoc-procedures#489, I stumbled upon an inaccuracy in the import tool's documentation. In particular, it states that there are three mandatory fields for relationships, including :TYPE:

https://github.com/neo4j/neo4j-documentation/blob/a5ea8152c40fa5359278ea61a86935b2d63afc29/import-tool/src/docs/ops/import-tool.asciidoc#relationships

For relationship data sources, there are three mandatory fields:

TYPE::
  The relationship type to use for the relationship.
START_ID::
  The id of the start node of the relationship to create.
END_ID::
  The id of the end node of the relationship to create.

However, this is not the case: the :START_ID and :END_ID fields are indeed mandatory, but :TYPE is not as it can be (and usually is) specified with the --relationships:RelType filename.csv switch.

Here are two working examples that load relationships files that do not contain the :TYPE field:

@szarnyasg Thank you for noticing and letting us know! I have fixed this at the source (which is in a different repository). The web version will be updated at the next docs deployment.

Maria