-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 2.0
-
Component/s: None
-
Labels:
-
Empty show more show less
When trying to get the documents from the collection with an non-ascii collection name (in this case områder) it returns an empty array even though there are documents in this collection matching the find query.
var mongo = require('mongodb'); new mongo.MongoClient.connect('mongodb://localhost:27017/test', function(err, db) { if (err) throw err db.collection('områder').find({}).toArray(function(err, docs) { if (err) throw err console.log(docs) }); });