Closed bwgjoseph closed 3 years ago
@bwgjoseph can you pass the consistency as an option, since it uses N1QL behind the scene it would not be immediately consistent ? Did you check the backend later to see if it got updated. I would start with that first.
Nope, it does not work. And it shouldn't need to pass in any way since it's a single API call, and the result from this call should give back the correct response without consistency
defined
Ah ok, will check with dev and get back
This should be fixed with the next release.
Fixed w/ alpha 29
This is not fixed yet. I'm still getting facing the same issue
const findOneAndUpdate = await Immutable3Model.findOneAndUpdate(
{ _id: created._id },
{
name: 'test',
createdAt: changeDate,
createdBy: 'Edwin',
updatedAt: changeDate,
updatedBy: 'Edwin',
},
// { new: true },ππΌππΌππΌ To get document updated
);
Please check this:
Ottoman findOneAndUpdate doc new
option
Thanks! I missed that, it working now
Hi,
While re-running my test suite, I noticed that running
findOneAndUpdate
seems to not update any of my fields.These are the setup
This is the test
This is the output
Thanks