-
I have a model The Artist can be previously defined, so the input current can be either
I believe I need to upsert the Artists first so I run the following code:
It feels like an anti pattern to have to restrict the id. My question is, is there a way I can nested upsert Artists in the Event creation, or handle the existence of the artist id in the create more elegantly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @powderham 👋 Unfortunately, the current workaround for this would be omitting the Could you pls open a feature request here including the description above so that we can look into this? |
Beta Was this translation helpful? Give feedback.
Hey @powderham 👋
Unfortunately, the current workaround for this would be omitting the
id
as the query wouldn't work without that. So it would be either as you have done above or via destructuring theArtist
.Could you pls open a feature request here including the description above so that we can look into this?