laravel-mongodb
laravel-mongodb copied to clipboard
Upsert with Push
Hi there,
I am trying to achieve an upsert with push. Basically, I am saving the number of likes from a YouTube post. If the record already exists, I would like to push to an array called 'history'; otherwise, I would like to create the record with all the post details.
Does anyone have any idea how I can achieve this?
This is a similar thing that I want to achieve.
bump for this.