Found the problem, need to use function(err,obj)
instead:
Auth.findOne({nick: 'noname'}, function(err,obj) { console.log(obj); });
More Related Contents:
- Mongoose always returning an empty array NodeJS
- $lookup multiple levels without $unwind?
- Avoid “current URL string parser is deprecated” warning by setting useNewUrlParser to true
- Mongoose, update values in array of objects
- In Mongoose, how do I sort by date? (node.js)
- mongoError: Topology was destroyed
- Setting expiry time for a collection in mongodb using mongoose
- MongoDB/Mongoose querying at a specific date?
- Making mongoose.js queries run synchronously
- How to populate a sub-document in mongoose after creating it?
- Mongoose/mongoDB query joins.. but I come from a sql background
- mongoose custom validation using 2 fields
- (node:3341) DeprecationWarning: Mongoose: mpromise
- Mongoose deleting (pull) a document within an array, does not work with ObjectID
- How to set limit for array size in Mongoose schema
- Mongoose indexing in production code
- MongooseError – Operation `users.findOne()` buffering timed out after 10000ms
- MongoDB – get documents with max attribute per group in a collection
- Connecting Heroku App to Atlas MongoDB Cloud service
- how to use populate and aggregate in same statement?
- Automatically remove referencing objects on deletion in MongoDB
- Mongoose nested query on Model by field of its referenced model
- How do I get the objectID after I save an object in Mongoose?
- Mongoose password hashing
- Node.js – Mongoose – Check if a collection exists
- nodejs mongodb object id to string
- Mongoose overwrite the document rather that `$set` fields
- Mongodb $lookup dynamic collection
- Mongoose complex (async) virtuals
- Create unique autoincrement field with mongoose [duplicate]