StackOverflow Questions for Tag: findoneandupdate

Akta Gupta
Akta Gupta

Reputation: 9

Issue in findOne() in mongodb atlas

Score: 0

Views: 37

Answers: 0

Read More
Natan Salmon
Natan Salmon

Reputation: 1

Mongoose - findByIdAndUpdate not working as expected

Score: 0

Views: 39

Answers: 0

Read More
Dharshan S
Dharshan S

Reputation: 19

Why my document is not updating in mongoDB

Score: -1

Views: 267

Answers: 1

Read More
dhaval123
dhaval123

Reputation: 31

Cannot get the updated value in MongoDB realm

Score: 1

Views: 49

Answers: 0

Read More
Xxxxx
Xxxxx

Reputation: 1

I am running a mongodb query, where I am using a find method to get the record , it's not updating even though the fields exist in mongodb

Score: -1

Views: 98

Answers: 2

Read More
Jan Safronov
Jan Safronov

Reputation: 1

expression not supported in MongoDB update definition

Score: 0

Views: 714

Answers: 0

Read More
jowww
jowww

Reputation: 3

findOneAndUpdate() no longer accepts a callback

Score: 0

Views: 65

Answers: 1

Read More
Adex
Adex

Reputation: 53

How to add an id to an array of object when pushing a new object into the array in node

Score: 0

Views: 149

Answers: 1

Read More
Chuquemeka
Chuquemeka

Reputation: 33

Node.js findOneAndUpdate function returns null when trying to update products in an ecommerce store with Express

Score: 2

Views: 84

Answers: 1

Read More
MPiland
MPiland

Reputation: 57

Mongoose findOneAndUpdate is not updating database

Score: 1

Views: 327

Answers: 2

Read More
zippy
zippy

Reputation: 1

I want to update payments document if found, create a new document with the updated field, leaving the original document

Score: -1

Views: 22

Answers: 1

Read More
Crashie
Crashie

Reputation: 19

Mongoose findOneAndUpdate() executes multiple times

Score: -1

Views: 311

Answers: 1

Read More
user21436456
user21436456

Reputation: 1

Mongoose no longer accpet callback() MongooseError: Model.findOne() no longer accepts a callback

Score: -1

Views: 128

Answers: 1

Read More
user6377312
user6377312

Reputation:

Mongo findOneAndUpdate - How to not push objects into array if already exist?

Score: 0

Views: 60

Answers: 0

Read More
user6377312
user6377312

Reputation:

Mongoose findone returns wrong user when the field passed in, is not defined in schema. How can I handle this case?

Score: 1

Views: 60

Answers: 0

Read More
Luckyfield
Luckyfield

Reputation: 103

Appending objects to array field using $push and $each returns null (Mongoose)

Score: 1

Views: 62

Answers: 2

Read More
Vaodi
Vaodi

Reputation: 37

findOneAndUpdate a nested object inside a nested array

Score: 1

Views: 225

Answers: 1

Read More
Strontium_99
Strontium_99

Reputation: 1803

Mongoose findOneAndUpdate keep throwing an error when trying to update a nested object

Score: 0

Views: 679

Answers: 1

Read More
user3903448
user3903448

Reputation: 330

Mongoose findOneAndUpdate is not updating the DB

Score: 1

Views: 48

Answers: 0

Read More
Romeo Sierra
Romeo Sierra

Reputation: 1756

Mongoose `findOneAndUpdate` returns `QueryWithHelpers` instead of result

Score: 0

Views: 314

Answers: 1

Read More
PreviousPage 1Next