I created, copied and pasted both the Orders.csv and Product.csv tables and then tried to import them with the following Foreign Key in Order.csv
customer__Customer__bcklsFK_ONE_TO_ONE
(Please keep in mind I had to remove an extra underscore between bcklsFK and ONE… in order for backendless to recognize it… Here’s the original FK name on your page which didn’t work: columnName__Filename__bcklsFK__ONE_TO_ONE )
Anyways once I removed that extra underscore and imported both tables, the import type mappings did not show any customer relations like you have displayed in your example here.
“relation({”“constraints”":[],"“type”":"“RELATION”","“autoLoad”":false,"“relatedTable”":"“Child”"})"
relation - name of relation column
type - type of relation (RELATION=1:1, RELATION_LIST=1:N)
But if it is one-to-many relay, then it will not be in the Parent table, but in the Child.
I think I figured it out.
The table I’m trying to import is the TitlesAuthor.csv and it’s a Many to Many join table and it looks like MM Tables can only use a RELATION and not a RELATION_LIST when they refer to both their parents.
I tried something else by imported a simple 2 table parent and child… and using RELATION_LIST on the child table worked.