import with belongstomany fields
I have the following fields that the user has to add for the csv upload:
- first_name
- last_name
- email
- role
- company name
I want to updateOrCreate name and email in the users table while I want to attach role and company to the newly created / existing user.
I am trying to achieve this with the following:
But the user is not persisting and hence the afterSave is also not working. So all in all, both resolverecord and aftersave, both are not working.
What am I doing wrong?
0 Replies