tag:blogger.com,1999:blog-1608705335066798875.post8889892942603716623..comments2024-03-28T10:35:56.987+01:00Comments on IoC : Ulises Fasoli's blog: MongoDB & Spring Data remove Elements from ArraysUlises Fasolihttp://www.blogger.com/profile/18263942972377086645noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-1608705335066798875.post-60639761395456400312021-08-19T06:58:11.057+02:002021-08-19T06:58:11.057+02:00Tks for share, I was looking for this code a long ...Tks for share, I was looking for this code a long timeLuciano Fischer Lumertzhttps://www.blogger.com/profile/09624928421784851484noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-59582564854430534272020-04-18T20:21:13.848+02:002020-04-18T20:21:13.848+02:00In java class you have a list of strings and in Mo...In java class you have a list of strings and in Mongo's document there is array of category objects. Should that be edited?igor milanovichttps://www.blogger.com/profile/11163990599105377809noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-66104437746427710642014-09-03T14:46:09.282+02:002014-09-03T14:46:09.282+02:00Hi, what do you mean by update array field? you wa...Hi, what do you mean by update array field? you want to change the value of for example categoryName ?Ulises Fasolihttps://www.blogger.com/profile/18263942972377086645noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-43489773944633605642014-09-03T14:26:34.450+02:002014-09-03T14:26:34.450+02:00Any idea to update an array field.Any idea to update an array field.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-36028268103428887152014-04-23T18:18:49.733+02:002014-04-23T18:18:49.733+02:00Hi thanks for pointing this out, it's actually...Hi thanks for pointing this out, it's actually a typo.. you should use the update variable and not the pullUpdate (I've corrected it now).<br />Ulises Fasolihttps://www.blogger.com/profile/18263942972377086645noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-63562936938103953092014-04-23T17:29:26.450+02:002014-04-23T17:29:26.450+02:00// execute the update
template.updateMulti(findQue...// execute the update<br />template.updateMulti(findQuery, pullUpdate, Book.class);<br /><br />should we use 'update' variable, instead of pullUpdate?<br />If not, why we introduce it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-64002466714925795192013-12-26T23:29:56.568+01:002013-12-26T23:29:56.568+01:00great, example, any idea of how to update one fiel...great, example, any idea of how to update one field value in the array, I have tried that and could not get spring data to work- only a native query.PrimeTimehttps://www.blogger.com/profile/15627420788415548937noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-68922872178416891092013-08-04T09:25:36.495+02:002013-08-04T09:25:36.495+02:00You're welcome.You're welcome.Ulises Fasolihttps://www.blogger.com/profile/18263942972377086645noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-431472735347790022013-08-04T09:25:14.781+02:002013-08-04T09:25:14.781+02:00It's actually a typo from when I first started...It's actually a typo from when I first started writing the article.<br />It should be 'categories.categoryId'; its corrected now thanks for pointing it out.Ulises Fasolihttps://www.blogger.com/profile/18263942972377086645noreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-91585308644897835292013-08-04T01:12:58.346+02:002013-08-04T01:12:58.346+02:00Thanx dude for your post.Thanx dude for your post.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1608705335066798875.post-76633663897684478622013-08-03T23:57:59.332+02:002013-08-03T23:57:59.332+02:00What is broadcasts.broadcastIdWhat is broadcasts.broadcastIdAnonymousnoreply@blogger.com