subCollection.getCollection is not a function...

Scott Colestock shared this problem 3 years ago
Solved

Sometimes when I double click on a collection to do a simple find, I'm getting the error below. Any suggestions? this is against a mongo 2.6 cluster.


{

"message" : "subCollection.getCollection is not a function",

"stack" : "TypeError: subCollection.getCollection is not a function" +

"at evalmachine.<anonymous>:5770:51" +

"at Array.forEach (native)" +

"at DB._defineCollection (evalmachine.<anonymous>:5768:35)" +

"at evalmachine.<anonymous>:1:4" +

"at ContextifyScript.Script.runInContext (vm.js:35:29)" +

"at Object.exports.runInContext (vm.js:67:17)" +

"at /Applications/mongobooster.app/Contents/Resources/app.asar/backend/mongoHandler.js:547:23" +

"at tryBlock (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/asyncawait/src/async/fiberManager.js:39:33)" +

"at runInFiber (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/asyncawait/src/async/fiberManager.js:26:9)"

}

Comments (7)

photo
1

Could you please give me the complete code to recall the issue?


And, getCollection is a db method, not a collection method.


e.g.


db.getCollection("user").find()

photo
1

I was literally just double-clicking on a collection (which generated . "db.getCollection("groupride.group.audit").find({})" ) and received the error above - I wasn't attempting to write any code myself when getting the error above.

photo
1

Any update on this? Does it matter that the collection has periods in the name, such as:


db.getCollection("a.b.c").find({})

photo
1

It works well with the latest build v3.5.6.


3c1f018d96567ddd10755a2139af531f

photo
1

I am on the latest version and still experiencing this issue - see below.67c40c47285a3fba7711cc021fc23919

photo
1

Thank you for your feedback. I can recall it locally.


I have worked out a new build to resolve the issue, please download and give it a try.


http://s3.mongobooster.com/download/3.5/mongobooster-3.5.7.dmg

photo
1

Excellent - that works - thank you.

Leave a Comment
 
Attach a file