-
I tried using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Impossible to help without looking at any code. |
Beta Was this translation helpful? Give feedback.
-
@iammrsea I got the same problem today and solved it ! So in your code, I think you should write :
OR
Feature Request @thetutlage : Accept model in .updateOrCreateMany and other functions 😀 |
Beta Was this translation helpful? Give feedback.
@iammrsea I got the same problem today and solved it !
I think in your code you return the object/Model Product, and not the serialized version like you think it was in your post.
When I have an array of object, I do this :
await Event.fetchOrCreateMany('event_id', arrayEvent.map(ev => ev.toJSON()))
So in your code, I think you should write :
OR