updateById doesn't work
See original GitHub issueHi,
does anyone meet this problem, the updateById
doesn’t work at all from my sdie.
- no error with DEBUG=* mode
- when retrieving the record directly in couchbase, nothing changed.
I’m following this document https://ottomanjs.com/guides/model.html#updating
const newHello = await HelloModel.updateById(id, data);
in my package.json
using ottoman version "ottoman": "^2.0.0-beta.1",
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
updateById does not return an object of the new model #1582
updateById does not return an object of the new model #1582 ... updateById performs raw sql UPDATE query and does not select anything....
Read more >NodeJS & Mongoskin, can't do simple update. Argument ...
Using mongoskin. I'm trying to do a simple update and I keep on getting the error: Error: Argument passed in must be a...
Read more >[Go] Unable to Update or UpdateByID with $set and $unset ...
When trying to combine _, err = d.UpdateByID(ctx, us.UserUUID, bson.M{"$set": updates}, options.Update().SetUpsert(true)) with _, err = d.
Read more >How to Update a MongoDB Document Using the Golang Driver
Enter mongo to confirm the Mongo Shell is working properly. ... so the system doesn't return the “ missing ',' before newline ”...
Read more >Partial Data Update With Spring Data | Baeldung
With this, we can load stored entities and merge them with a DTO before calling JPA save method — in fact, we'll update...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @chendu glad you asked. Ottoman 2.0 is built on top of SDK 3.x and supports Couchbase Server 6.5 and above. Would recommend moving to latest release.
Just to make that we are using the right ottoman version?