Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
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
Mongoose Node.JS ODM
Contact owners and managers
1–30 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
Mark Voris
6/12/19
Q&A
Mongoose not returning data when MongoDB shell returns
I have been struggling where occasionally Mongoose doesn't return data even though if I manually
unread,
population
query
Q&A
Mongoose not returning data when MongoDB shell returns
I have been struggling where occasionally Mongoose doesn't return data even though if I manually
6/12/19
Vishal bheda
2/16/19
Q&A
how to use conn.db.admin().command() on secondary in replica set?
Trying to get results of command that I passed in admin command, but it throws me back a MongoError:
unread,
error
promise
query
Q&A
how to use conn.db.admin().command() on secondary in replica set?
Trying to get results of command that I passed in admin command, but it throws me back a MongoError:
2/16/19
Maksim Belyakov
12/14/17
Q&A
Default log
Hello Is there a log by default? I did not have any data in the database, so I need to find the
unread,
error
index
query
Q&A
Default log
Hello Is there a log by default? I did not have any data in the database, so I need to find the
12/14/17
micros...@gmail.com
2
10/24/17
Q&A
Handling undefined variables within find() queries
Ended up building a new js object and using that as my query with a mass of if statements. It works,
unread,
query
Q&A
Handling undefined variables within find() queries
Ended up building a new js object and using that as my query with a mass of if statements. It works,
10/24/17
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
Hugo Seleiro
3/22/17
Q&A
findOne query to uniquely identitfy the user
Could some one help me whit the query to identify my user ? exports.fetchUser = (req, res) => {
unread,
query
Q&A
findOne query to uniquely identitfy the user
Could some one help me whit the query to identify my user ? exports.fetchUser = (req, res) => {
3/22/17
Abhishek Jain
10/14/16
Q&A
Connecting and querying multiple databases containing same schema.
Hi Team, I recently developed an admin portal for B2C and now want to white label it. Can you tell me
unread,
connection
query
Q&A
Connecting and querying multiple databases containing same schema.
Hi Team, I recently developed an admin portal for B2C and now want to white label it. Can you tell me
10/14/16
John Ervin
,
Jeff Cunningham
3
1/7/19
Q&A
Case-insensitive mongoose.model.find
This was very helpful to me. Where are these "Mongoose Query Helpers" you speak of, is this
unread,
query
Q&A
Case-insensitive mongoose.model.find
This was very helpful to me. Where are these "Mongoose Query Helpers" you speak of, is this
1/7/19
jati...@ykone.com
,
Thomas Blobaum
3
4/14/16
Q&A
mongoose-text-search is not working
Check out this implementation https://github.com/tblobaum/mongoose-troop/blob/master/README.md#
unread,
index
model
plugin
query
schema
Q&A
mongoose-text-search is not working
Check out this implementation https://github.com/tblobaum/mongoose-troop/blob/master/README.md#
4/14/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
Nejc Vukovic
2
1/12/16
Q&A
Filter a find() to get only the data I need
Well I found the way to do it: with select() - for those that will seek for this info : http://
unread,
query
Q&A
Filter a find() to get only the data I need
Well I found the way to do it: with select() - for those that will seek for this info : http://
1/12/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
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
Peter Tinder
9/12/15
Q&A
How to query for fields and fields in nested array
I have a document like this: { "InDate": "11.09.2015", "Kst2Kst": true,
unread,
array
query
Q&A
How to query for fields and fields in nested array
I have a document like this: { "InDate": "11.09.2015", "Kst2Kst": true,
9/12/15
Dipesh gupta
,
Emanuele DelBono
3
9/1/15
Q&A
How to Change the date format in "mm/dd/yyy" of Date field returned by mongoose query
It's not related to moongoose, it's a general javascript concern. You should use something
unread,
query
Q&A
How to Change the date format in "mm/dd/yyy" of Date field returned by mongoose query
It's not related to moongoose, it's a general javascript concern. You should use something
9/1/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
Angel Rodriguez
,
Ryan Wheale
2
6/8/15
Q&A
Returning the name of the field
Aggregation should be able to handle this. The essential idea is that you would get your initial
unread,
query
Q&A
Returning the name of the field
Aggregation should be able to handle this. The essential idea is that you would get your initial
6/8/15
Angel Rodriguez
,
Jason Crawford
4
6/3/15
Q&A
extranting search results
I suppose you could do a query on startup and cache the data. Not necessarily a good idea (what if
unread,
query
Q&A
extranting search results
I suppose you could do a query on startup and cache the data. Not necessarily a good idea (what if
6/3/15
Sarath Ms
, …
Ryan Wheale
5
2/12/15
Q&A
Query help: Clock range search - reverse e.g 9PM - 5AM
In your aggregation pipeline, you should project another field onto your data to specify the logic to
unread,
aggregation
condition
query
Q&A
Query help: Clock range search - reverse e.g 9PM - 5AM
In your aggregation pipeline, you should project another field onto your data to specify the logic to
2/12/15
Luis Alberto Grijalva Romero
,
Anthony Ettinger
3
2/10/15
Q&A
Problems reading MongoDb collection with Node.js
is not an array but if i try with this: var arreglo = materias[x].Horario[0]; console.log(arreglo); /
unread,
array
getter
model
query
schema
Q&A
Problems reading MongoDb collection with Node.js
is not an array but if i try with this: var arreglo = materias[x].Horario[0]; console.log(arreglo); /
2/10/15
dr_jonat...@hotmail.co.uk
2
2/4/15
Q&A
Need help with geoSearch and geoNear (getting error "can't find ns").
UPDATE: I have tried manually creating a geoHaystack index using the Mongo Client shell. This works (
unread,
model
query
Q&A
Need help with geoSearch and geoNear (getting error "can't find ns").
UPDATE: I have tried manually creating a geoHaystack index using the Mongo Client shell. This works (
2/4/15
vabl...@gmail.com
,
Jason Crawford
3
2/3/15
Q&A
How to find the object by embedded document property in Mongoose?
Thank you very much. Now, I go with query an id of link first then find for the user by an id of link
unread,
array
query
schema
Q&A
How to find the object by embedded document property in Mongoose?
Thank you very much. Now, I go with query an id of link first then find for the user by an id of link
2/3/15
Greg Braman
,
Valeri Karpov
2
12/4/14
Q&A
Default Scope for Queries?
Do you mean setting query defaults per model? Mongoose currently doesn't have a built-in method
unread,
model
query
Q&A
Default Scope for Queries?
Do you mean setting query defaults per model? Mongoose currently doesn't have a built-in method
12/4/14
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
Rick Rafey
10/28/14
Q&A
Getting empty list from JavaScript for geoNear query that works fine in Mongo shell
I am trying to migrate my code from using $near to geoNear, as I want the sort order of the results
unread,
error
model
query
schema
Q&A
Getting empty list from JavaScript for geoNear query that works fine in Mongo shell
I am trying to migrate my code from using $near to geoNear, as I want the sort order of the results
10/28/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
Angel Rodriguez
10/3/14
Q&A
How can I make this query mongoose ??
I am creating a search engine with node, express, mongo, mongoose, etc. Now, how can I know when the
unread,
query
Q&A
How can I make this query mongoose ??
I am creating a search engine with node, express, mongo, mongoose, etc. Now, how can I know when the
10/3/14
Saiteja Parsi
,
Alone Bala
2
10/6/14
Q&A
push an element to an array in a mongoose document
try this one var selection = { _id: id}; var updateQuery = { $push: { content: content,timeStamp:
unread,
array
model
query
Q&A
push an element to an array in a mongoose document
try this one var selection = { _id: id}; var updateQuery = { $push: { content: content,timeStamp:
10/6/14
Mauricio Mercado
9/11/14
Q&A
How to create text index for a collection with mongoose 3.8.9
Hello, I want to add text indexes to a collection I call users, but Id like to add that index to
unread,
index
query
Q&A
How to create text index for a collection with mongoose 3.8.9
Hello, I want to add text indexes to a collection I call users, but Id like to add that index to
9/11/14
dessa beca GP
, …
Petr Vocelka
3
10/1/16
Q&A
How can I count the number of all documents in a Collection using Mongoose?
I know it's too late, but at least I can provide helpful answer... We can take advantage of
unread,
query
Q&A
How can I count the number of all documents in a Collection using Mongoose?
I know it's too late, but at least I can provide helpful answer... We can take advantage of
10/1/16