Groups
Sign in
Groups
Mongoose Node.JS ODM
Conversations
Labels
ObjectId
aggregation
array
condition
connection
error
getter
index
middleware
model
plugin
population
promise
query
refs
release
schema
setter
stream
types
update
validation
virtual
About
Send feedback
Help
Mongoose Node.JS ODM
Contact owners and managers
1–29 of 1850
Discuss, learn about, and get help with Mongoose through this community-supported forum. Other useful resources:
Mongoose:
Documentation
,
StackOverflow
,
@mongoosejs
on Twitter,
Bug Reports
,
Changelog
, irc: #mongoosejs on freenode
Node.js MongoDB Driver:
Documentation
,
Google Group
,
Bug Reports
MongoDB:
Documentation
,
Google Group
,
Downloads
,
Bug Reports
Mark all as read
Report group
0 selected
Taran Vohra
10/7/19
Q&A
BulkWrite not committing changes as expected
I am running MongoDB 4.0 on MongoDB Atlas Free Tier and using Mongoose 5.7 ODM in Node.js My problem
unread,
model
update
Q&A
BulkWrite not committing changes as expected
I am running MongoDB 4.0 on MongoDB Atlas Free Tier and using Mongoose 5.7 ODM in Node.js My problem
10/7/19
Maks Yaremenko
,
Richard Bateman
2
7/18/17
Q&A
is it possible tu $push ObjectId to array if value not exist and $pull if it exist ?
You might want to ask this in a more generic mongodb group, since it's not a mongoose-specific
unread,
query
update
Q&A
is it possible tu $push ObjectId to array if value not exist and $pull if it exist ?
You might want to ask this in a more generic mongodb group, since it's not a mongoose-specific
7/18/17
Toni Benitez
10/3/16
Q&A
Nested Updates with Mongoose in mixed fields
I am developing an realtime application (node, socket.io and mongoDB with Mongoose) which receive
unread,
update
Q&A
Nested Updates with Mongoose in mixed fields
I am developing an realtime application (node, socket.io and mongoDB with Mongoose) which receive
10/3/16
Lợi Nguyễn
4/20/16
Can't update a document while I use findByIdAndUpdate function
up vote0down votefavorite I'm a newbie in JS, NodeJS, Mongodb and I am trying to figure out my
unread,
middleware
update
Can't update a document while I use findByIdAndUpdate function
up vote0down votefavorite I'm a newbie in JS, NodeJS, Mongodb and I am trying to figure out my
4/20/16
Billy Newman
2
2/17/16
Q&A
findByIdAndUpdate does not have a 'pre' hook
And...... nevermind, I was running 4.2.7. When on 4.2.7 the post is correct. However after upgrading
unread,
middleware
query
update
validation
Q&A
findByIdAndUpdate does not have a 'pre' hook
And...... nevermind, I was running 4.2.7. When on 4.2.7 the post is correct. However after upgrading
2/17/16
Ashesh Khatri
,
Valeri Karpov
2
9/28/15
Q&A
Want to Update Array of Array Object Value in Mongo
It's really difficult to do this with an aggregation framework query or an update. If it were up
unread,
array
query
update
Q&A
Want to Update Array of Array Object Value in Mongo
It's really difficult to do this with an aggregation framework query or an update. If it were up
9/28/15
David Lavy
,
Nathan White
2
8/2/15
Q&A
update only few documents
You can't. Update allows you to update the first match (default) or multi which allows bulk
unread,
condition
query
update
Q&A
update only few documents
You can't. Update allows you to update the first match (default) or multi which allows bulk
8/2/15
Jae hyun yoo
6/28/15
Q&A
how do I access to collection's data size through mongoose?
Hi, how do I get mongodb's collection method datasize() with mongoose? var Post = db.model('
unread,
model
update
Q&A
how do I access to collection's data size through mongoose?
Hi, how do I get mongodb's collection method datasize() with mongoose? var Post = db.model('
6/28/15
ZR
6/22/15
Q&A
Pushing array elements from android app to a mongoose schema
Hi All, I am trying to figure out how to push array elements from my android app to a mongoose schema
unread,
array
population
schema
update
Q&A
Pushing array elements from android app to a mongoose schema
Hi All, I am trying to figure out how to push array elements from my android app to a mongoose schema
6/22/15
Claudio Pomo
, …
Valeri Karpov
5
2/17/15
Q&A
nodejs mongoose bulk update
Enter code here... Mongoose doesn't really support the "initializeOrderedBulkOp()"
unread,
update
Q&A
nodejs mongoose bulk update
Enter code here... Mongoose doesn't really support the "initializeOrderedBulkOp()"
2/17/15
Guilherme Souza
,
jondavidjohn
2
12/4/14
Q&A
$__.activePaths is reseted after a failed save()
This pull request just got merged into master to fix this issue. https://github.com/LearnBoost/
unread,
error
update
Q&A
$__.activePaths is reseted after a failed save()
This pull request just got merged into master to fix this issue. https://github.com/LearnBoost/
12/4/14
Alone Bala
10/4/14
Mongodb update or create function run on single query
this is my document in worker collection i want when I delete the id. today worker change to 2
unread,
query
update
Mongodb update or create function run on single query
this is my document in worker collection i want when I delete the id. today worker change to 2
10/4/14
Ken Kopelson
, …
angelcam...@gmail.com
6
3/5/19
Q&A
How can I add a new field to a schema and then update existing records with new field data?
Hi Ken, I'm new using mongodb and I'm the same issue as you, I read Joe's answer but didn
unread,
schema
update
Q&A
How can I add a new field to a schema and then update existing records with new field data?
Hi Ken, I'm new using mongodb and I'm the same issue as you, I read Joe's answer but didn
3/5/19
Benjamin Bengfort
, …
Ryan Wheale
3
6/13/14
Q&A
findOne vs findById
I can verify that findById( [id] ) is just a shortcut to findOne( {_id: [id]} ); The only performance
unread,
query
update
Q&A
findOne vs findById
I can verify that findById( [id] ) is just a shortcut to findOne( {_id: [id]} ); The only performance
6/13/14
Roman
4/15/14
Q&A
Does Moongoose 3.8.8 support $position operator?
Does Moongoose 3.8.8 (the lastest version) support $position (http://docs.mongodb.org/manual/
unread,
model
query
schema
update
Q&A
Does Moongoose 3.8.8 support $position operator?
Does Moongoose 3.8.8 (the lastest version) support $position (http://docs.mongodb.org/manual/
4/15/14
Joshua Abrams
,
Joe Wagner
5
4/3/14
Q&A
Async patterns with node and mongoose
Helps a ton. Makes total sense. Thanks Joe. On Thursday, April 3, 2014 2:05:03 AM UTC+10, Joe Wagner
unread,
promise
update
validation
Q&A
Async patterns with node and mongoose
Helps a ton. Makes total sense. Thanks Joe. On Thursday, April 3, 2014 2:05:03 AM UTC+10, Joe Wagner
4/3/14
Ilya Zub
, …
Aaron Heckmann
4
1/17/14
Q&A
"node: symbol lookup error" after update to 3.8.4
I've pinged the bson module author. Hopefully we'll have a fix soon. On Fri, Jan 17, 2014 at
unread,
error
update
Q&A
"node: symbol lookup error" after update to 3.8.4
I've pinged the bson module author. Hopefully we'll have a fix soon. On Fri, Jan 17, 2014 at
1/17/14
Bikram Basnet
,
Paul Verhoeven
3
12/19/13
Q&A
How can i set default values for subdocument in mongoose?
Very much thankful for your reply..i did like your said..but it doesnt get the value from the mongodb
unread,
array
middleware
schema
setter
update
Q&A
How can i set default values for subdocument in mongoose?
Very much thankful for your reply..i did like your said..but it doesnt get the value from the mongodb
12/19/13
John Allen
,
Joe Wagner
2
11/28/13
Q&A
Can't update embedded doc array when already have instance of parent model.
I put an answer on SO, hopefully its helpful On Tuesday, November 26, 2013 11:51:31 AM UTC-7, John
unread,
array
model
query
update
Q&A
Can't update embedded doc array when already have instance of parent model.
I put an answer on SO, hopefully its helpful On Tuesday, November 26, 2013 11:51:31 AM UTC-7, John
11/28/13
Lu4
, …
Aaron Heckmann
3
11/20/13
Q&A
Mongoose is unable to $unset a document property
Please open a ticket on github.com/learnboost/mongoose/issues/new if you haven't already done so.
unread,
update
Q&A
Mongoose is unable to $unset a document property
Please open a ticket on github.com/learnboost/mongoose/issues/new if you haven't already done so.
11/20/13
Nam Nguyen
,
Simon Holmes
2
9/20/13
Q&A
Update document with error: Cast to string failed for value undefined
Just send through an empty string instead of undefined. var test = { name: 'Users',
unread,
model
schema
update
Q&A
Update document with error: Cast to string failed for value undefined
Just send through an empty string instead of undefined. var test = { name: 'Users',
9/20/13
xi sizhe
8/30/13
Q&A
How to update(remove) a document in the nested array
I have a test schema of mongodb implemented in mongoose. var TestSchema = new mongoose.Schema({ exam:
unread,
schema
update
Q&A
How to update(remove) a document in the nested array
I have a test schema of mongodb implemented in mongoose. var TestSchema = new mongoose.Schema({ exam:
8/30/13
imri heppner
8/28/13
Q&A
unsetting fields when pushing an object to array
Hi, my problem is with mongoose setting [ ] for arrays without asking it to do so (in update - while
unread,
array
schema
update
Q&A
unsetting fields when pushing an object to array
Hi, my problem is with mongoose setting [ ] for arrays without asking it to do so (in update - while
8/28/13
Justin Golden
,
Hylke Bron
2
7/4/13
Q&A
Changing data in mongoose document
Hi, This is a classic syntax error. And what exactly is your var callback5 defined to, and user is
unread,
model
update
Q&A
Changing data in mongoose document
Hi, This is a classic syntax error. And what exactly is your var callback5 defined to, and user is
7/4/13
Mongo Rookie
6/26/13
Q&A
findByIdAndUpdate throwing cast error when I try and update a property to null
Schema: var SomeSchema = new Schema({ name: { type: String, required: true, unique: true },
unread,
error
schema
update
Q&A
findByIdAndUpdate throwing cast error when I try and update a property to null
Schema: var SomeSchema = new Schema({ name: { type: String, required: true, unique: true },
6/26/13
Thomas Delalonde
6/25/13
Q&A
Update schema and ref
I have a schema named card to update from {_id: ObjectId, id: String, ....} to {_id: String(same as
unread,
ObjectId
model
population
schema
update
Q&A
Update schema and ref
I have a schema named card to update from {_id: ObjectId, id: String, ....} to {_id: String(same as
6/25/13
Nik Martin
,
Aaron Heckmann
3
5/3/13
Q&A
Schema changes - what happens to older documents?
Aaron, Thank you for the detailed and informative reply. I am actually GLAD MongoDB is Schema-Less,
unread,
schema
update
Q&A
Schema changes - what happens to older documents?
Aaron, Thank you for the detailed and informative reply. I am actually GLAD MongoDB is Schema-Less,
5/3/13
Hylke Bron
4/25/13
Q&A
Find a document, alter one of its sub-sub-documents, save it and... no changes saved.
Hello, I am building an application with MongoDB and Mongoose. Ive thought of a nice datastructure,
unread,
model
schema
update
Q&A
Find a document, alter one of its sub-sub-documents, save it and... no changes saved.
Hello, I am building an application with MongoDB and Mongoose. Ive thought of a nice datastructure,
4/25/13
anton kropp
2
3/25/13
Q&A
Querying by _id with $pull and $in
I should mention the same query works fine for any other non _id field. If i change the "in
unread,
ObjectId
schema
update
Q&A
Querying by _id with $pull and $in
I should mention the same query works fine for any other non _id field. If i change the "in
3/25/13