Using a relationship on import #127
Unanswered
rguttersohn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Perhaps slightly related to this idea but I am not sure if I am asking the same thing since I am not asking for relationships to be imported.
Is there a way to access a column's relationship when importing?
For example, let's say we have table A pointing to the id of Table B. Rather than having a user know the id of rows in table B, the user could reference the name/slug and then we can convert it the id using the relationship before saving it do the DB.
I know there is mutateBefore method, but I don't see how the relationship can be accessed from within the callback function.
If not, I wonder if that would be a useful feature for the community to add.
Beta Was this translation helpful? Give feedback.
All reactions