Top "Mongoose" questions

Mongoose is a MongoDB object modeling tool, or ODM (Object Document Mapper), written in JavaScript and designed to work in an asynchronous environment.

Mongoose Unique index not working!

I'm trying to let MongoDB detect a duplicate value based on its index. I think this is possible in MongoDB, …

mongodb node.js mongoose
strange mongodb and mongoose error: not master and slaveOk=false error

I'm getting a strange error in my node.js app not master and slaveOk=false code 13435 I'm doing a findOne …

mongodb mongoose mongohq
Mongoose: deep population (populate a populated field)

I have Category model: Category: ... articles: [{type:ObjectId, ref:'Article'}] Article model contains ref to Account model. Article: ... account: {type:…

mongodb mongoose populate
Querying after populate in Mongoose

I'm pretty new to Mongoose and MongoDB in general so I'm having a difficult time figuring out if something like …

node.js mongodb mongoose
Mongoose -- Force collection name

I am trying to use mongoose to create a database and a collection in it. My code is: var mongoose = …

mongodb mongoose
Mongoose populate after save

I cannot manually or automatically populate the creator field on a newly saved object ... the only way I can find …

node.js mongodb mongoose populate
How do I define methods in a Mongoose model?

My locationsModel file: mongoose = require 'mongoose' threeTaps = require '../modules/threeTaps' Schema = mongoose.Schema ObjectId = Schema.ObjectId LocationSchema = latitude: String …

javascript node.js mongodb coffeescript mongoose
How to exclude one particular field from a collection in Mongoose?

I have a NodeJS application with Mongoose ODM(Mongoose 3.3.1). I want to retrieve all fields except 1 from my collection.For …

javascript mongodb mongoose mongodb-query
Return certain fields with .populate() from Mongoose

I'm getting returned a JSON value from MongoDB after I run my query. The problem is I do not want …

javascript json node.js mongodb mongoose
(node:3341) DeprecationWarning: Mongoose: mpromise

I'm trying to develop a class on the top of the mongoose with my custom methods, so I extended the …

node.js mongodb mongoose