Imagine you want to copy the data from one app to another and you have a column type Relation. In this article, I'm going to explain in a few steps, how you can import relational data using the feature available in the Dashboard.
In order to show how it works, I'll create two classes: People and Soccer Teams. So, we can do the following steps:
- In your Dashboard > Core > go to the SoccerTeams class and import the data going to the Edit button (last icon) > Click on Import data.
- Select the file that you want to import.
(In my case, I added an attachment that I'm going to use in my app - SoccerTeams.json)
Once you uploaded it, please refresh the dashboard to check if the data was correctly imported. If it is not working, please contact the support team!
If everything is showing fine in the SoccerTeams class, change to the People class and take a look at the following steps:
- In your Dashboard > Core > People class > Import the data going to the Edit button (last icon) > Click on Import data.
- Select the file that you want to import.
(In my case, I added an attachment that I'm going to use in my app - People.json)
The last step is to import the relational data, please take a look at the following instructions:
- In your Dashboard > Core > People class > Edit button (last icon) > Click on Import relation data.
- Select the file that you want to import.
(In my case, I added an attachment that I'm going to use in my app - RelationPeople.json) - A modal will show asking the relation name, in this example, it is going to be favoriteTeams.
- Click on the Import button
Done, we were able to import and use relational data into our app :)
If you have any questions, please let us know! :)
Comments
0 comments
Please sign in to leave a comment.