Friends, I have one difficulty to update object element of the array of objects in jenssegers/laravel-mongodb
Here is my object { "_id": "5b94e23b2a034b0ea52ba282", "blogtitle": "Test with review", "desc": "this is with review", "isDeleted": 0, "review": [ { "id": 1, "review": "test review" }, { "id": 2, "review": "this is from push" }, { "id": 3, "review": "this is from push with no delete", "isDeleted": 0 } ], "updated_at": "2018-09-09 09:04:59", "created_at": "2018-09-09 09:04:59" }
now I want to update review array elements based on an index
ex. I want to update isDeleted = 1 where id = 3
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2NtI8y9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire