import data

42 views
Skip to first unread message

Minh_Tiến

unread,
Jun 1, 2021, 6:04:43 AM6/1/21
to ArangoDB
arangoimp --file git-commits-single-line.json --collection commits --create-collection true
This line above that is used to import file json to collection but type of it is document. So i want to know that how can i do to get type is EDGE  in arangoDB. Can you all help me? thanks all

Simran Spiller

unread,
Jun 24, 2021, 7:58:38 AM6/24/21
to ArangoDB
Hi,
arangoimport has an option --create-collection-type that you can use to instruct it to create an edge collection:

arangoimport --file git-commits-single-line.json --collection commits --create-collection --create-collection-type edge

Also see:


Reply all
Reply to author
Forward
0 new messages