Repeater custom create function?
I can only seem to find docs on how to
mutateRelationshipDataBeforeCreateUsing
, but not a way to do the actual insert into the database ourselves, is this possible?3 Replies
Can you explain what you want to do on the create that before CreateUsing won't do?
I suppose I can make a function in a service to prepare what I need, but heres another question then :
for my file upload i use
afterStateUpdated
and $set
to set te original file name, but that doesn't appear in the data that the mutation method gives, how can i fetch it from there? $get doesn't work because its on the repeater and not the upload field where set was usedSo if your field is a relationship the relationship handles that, so there is no need for it to be in the dataset on the state for the form.
Please provide some code and what you are trying to acheive.