question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

updateById doesn't work

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AV25242commented, Jun 16, 2021

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.

0reactions
chenducommented, Jun 16, 2021

Just to make that we are using the right ottoman version?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found