[22:31:01] <synaptech> hey all - I have a weird situation when trying to access a collection via mongo shell. After selecting a database I type "show collections" and see a collection named version, but if I try executing any collection level command (find(), count(), drop()) it throws an uncaught exception (see pastebin here: https://pastebin.com/YFAz9EuH)
[22:32:46] <synaptech> is there a command I can execute to see what the object actually is? or a way I can force drop it?
[22:44:15] <GothAlice> synaptech: The collection name collides with a method of the database, e.g. db.version() tells you the mongod version number. You must access collisions and "reserved words" in your language of choice via array dereferencing notation: db["version"]
[22:44:43] <GothAlice> Hmm. Silly JS. Or by the imperative method: db.getCollection('version')
[22:45:21] <GothAlice> (Languages other than JS have a distinction between array/dict elements and object attributes. Keep (trying to forget /) forgetting JS doesn't. >_<)
[22:46:34] <synaptech> ahh I suspected something like that might be the case