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–20 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
Muhammad Tayyab Sheikh
,
Richard Bateman
2
8/21/19
Q&A
Filter documents based on filter function
You can do that using $where, but it's not very efficient and can't use indexes. See https://
unread,
middleware
schema
validation
Q&A
Filter documents based on filter function
You can do that using $where, but it's not very efficient and can't use indexes. See https://
8/21/19
CJ Carter
,
Joe Wagner
5
10/22/18
Q&A
Sorting Infinite Scroll with Mongo and Mongoose shows wrong results
I don't think callback vs. await would matter, but can you try it? On Monday, October 22, 2018 at
unread,
middleware
model
plugin
schema
Q&A
Sorting Infinite Scroll with Mongo and Mongoose shows wrong results
I don't think callback vs. await would matter, but can you try it? On Monday, October 22, 2018 at
10/22/18
Patrick Borrelli
10/26/16
Q&A
Mongoose "Model.find is not a function" - cascading deletes works in one case, fails in another
I have two similar parent-child relationship trees in my data model and I am using Mongoose's
unread,
middleware
model
schema
Q&A
Mongoose "Model.find is not a function" - cascading deletes works in one case, fails in another
I have two similar parent-child relationship trees in my data model and I am using Mongoose's
10/26/16
Rigin Oommen
9/27/16
Q&A
How to do full text search in all collections in mongodb without specifying the collection name
var express = require('express'); var router = express.Router(); var mongoose = require('
unread,
array
connection
index
middleware
schema
Q&A
How to do full text search in all collections in mongodb without specifying the collection name
var express = require('express'); var router = express.Router(); var mongoose = require('
9/27/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
al...@lectal.com
10/31/15
Q&A
Mongoose - conditionally calling lean() in node.js
I am trying to determine how lean() works so that I can call it conditionally? Here is my question on
unread,
middleware
model
query
Q&A
Mongoose - conditionally calling lean() in node.js
I am trying to determine how lean() works so that I can call it conditionally? Here is my question on
10/31/15
aly jee
10/12/15
Q&A
mongo error auth failed error - everytime
Hi everybody, I'm a beginner in this area and i can not find any solution to this problem. I'
unread,
middleware
Q&A
mongo error auth failed error - everytime
Hi everybody, I'm a beginner in this area and i can not find any solution to this problem. I'
10/12/15
Greg Pulier
, …
nwhite
3
4/9/15
Q&A
Maintaining Atomicity When Using Save Middleware
The pre save is not going to help you with atomicity. I suggest looking at: http://mongoosejs.com/
unread,
middleware
Q&A
Maintaining Atomicity When Using Save Middleware
The pre save is not going to help you with atomicity. I suggest looking at: http://mongoosejs.com/
4/9/15
Thomas Forrer
11/3/14
Q&A
Middleware for query / find functions
I am building an application, where I need to intercept all queries that are being made against the
unread,
middleware
query
Q&A
Middleware for query / find functions
I am building an application, where I need to intercept all queries that are being made against the
11/3/14
Moyo Falaye
, …
Joe Wagner
3
5/15/14
Q&A
How to set connection string from session variable and prevent new db connection on request
Without seeing more code its hard to say what the issue is, but a general solution to this might be
unread,
connection
middleware
Q&A
How to set connection string from session variable and prevent new db connection on request
Without seeing more code its hard to say what the issue is, but a general solution to this might be
5/15/14
Vadorequest Mini Vado
,
Joe Wagner
3
2/14/14
Q&A
schema.pre('validate'), override `this`
I put an answer on SO with more detail
unread,
middleware
model
schema
Q&A
schema.pre('validate'), override `this`
I put an answer on SO with more detail
2/14/14
Mickael Bailly
,
Aaron Heckmann
2
2/17/14
Q&A
Lazy migration of documents
Neither stupid or cool are how I'd classify. This is a good solution for folks with data sets too
unread,
middleware
schema
Q&A
Lazy migration of documents
Neither stupid or cool are how I'd classify. This is a good solution for folks with data sets too
2/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
Francois Rioux
, …
Joe Wagner
4
10/6/13
Q&A
findOne in loop of subdocuments. Callback closure problem.
Thank you @Alessio, Joe, I haven´t retried with your options as in the meantime, I figured out that
unread,
array
error
middleware
schema
Q&A
findOne in loop of subdocuments. Callback closure problem.
Thank you @Alessio, Joe, I haven´t retried with your options as in the meantime, I figured out that
10/6/13
Saransh Mohapatra
,
Aaron Heckmann
2
7/8/13
Q&A
Mongoose Validation
All validations are run in parallel. For async setters use a custom method: yourSchema.methods.
unread,
middleware
validation
virtual
Q&A
Mongoose Validation
All validations are run in parallel. For async setters use a custom method: yourSchema.methods.
7/8/13
Mongo Rookie
, …
Aaron Heckmann
6
8/21/13
Q&A
Middleware pre('remove', ...) not getting called
done On Wed, Aug 21, 2013 at 6:54 AM, Stefano Pongelli <stefano....@gmail.com> wrote:
unread,
middleware
model
Q&A
Middleware pre('remove', ...) not getting called
done On Wed, Aug 21, 2013 at 6:54 AM, Stefano Pongelli <stefano....@gmail.com> wrote:
8/21/13
William Riley-Land
, …
Ryan Pendergast
8
8/1/13
Q&A
Baucis v0.5.0 — Build REST APIs based on Mongoose Schemata
Update: I just published baucis v0.6.0 to npm with experimental support for generating Swagger
unread,
middleware
schema
Q&A
Baucis v0.5.0 — Build REST APIs based on Mongoose Schemata
Update: I just published baucis v0.6.0 to npm with experimental support for generating Swagger
8/1/13
Amir Abu Shareb
, …
Robert Schütz
4
3/24/15
Q&A
Reaching model static methods inside middleware.
As Aaron pointed out, use PushSchema.pre('save', function (next) { this.constructor.doStuff(
unread,
middleware
Q&A
Reaching model static methods inside middleware.
As Aaron pointed out, use PushSchema.pre('save', function (next) { this.constructor.doStuff(
3/24/15
Illimar Tambek
,
Aaron Heckmann
2
3/27/13
Q&A
Passing req object to Schema defaults
It is not. You could wrap document construction in a custom function: function makeShinyThing (req) {
unread,
middleware
schema
Q&A
Passing req object to Schema defaults
It is not. You could wrap document construction in a custom function: function makeShinyThing (req) {
3/27/13