How to create Edge Collection, is there a sample file?

38 views
Skip to first unread message

Prem George

unread,
Nov 26, 2019, 8:19:13 PM11/26/19
to ArangoDB
Hi,
I'm new to ArangoDB,

While starting with the airports and flights collections,

if I have only flights information instead of _from and _to in the filghts.json, may I know how to create an edge collections file?

My example is for

if I have Accounts and PaymentTransaction Datasets, I have added both to collections as Document,

Accounts has "AccountID", "CustomerID", "AccountBalance"

PaymentTransaction has "TrxID","AccountNo", "CustomerNo", "CounterPartyNo", "TrxAmount"

AccountID and AccountNo are same reference

CustomerID and CustomerNo, CounterPartyNo are same reference

Now I need to create edges between

TrxID to AccountID of same AccountNo,

TrxID to CustomerID of same CustomerNo,

TrxID to CounterPartyNo of same CustomerNo

For this may I know how to create a Edge Collection file, 

Do you have the sample for that

Thanks
Prem
Reply all
Reply to author
Forward
0 new messages