ArangoDB Import csv to the edge (graph)

I have a CSV file that I want to import into a chart in ArangoDB. I am using the community version of ArangoDB3-3.1.24.

Here are the first three lines of the CSV file

id,_from,_to,score 1,568703.1,568703.2,282 2,568703.1,568703.31,183 3,568703.1,568703.91,238 

And here is what I tried

 arangoimp --file "C:\Users\M\Desktop\file.csv" --server.username root --type csv --collection "Col_edge_L" 

I think I missed something.

+7
import graph csv arangodb edge edge-list
source share
1 answer

If the set of edges does not exist yet, you also need to pass the parameters --create-collection true --create-collection-type edge .

It may also be that the file may not be accessible to arangoimp - it may not have sufficient permissions to access the user desktop. Try moving it somewhere like c:\temp and see if that helps.

+4
source share

All Articles