mongotron
mongotron copied to clipboard
Error when opening db with invalid javascript naming.
I have a database with a hyphen in the name, and when I try to open the collections, an error is thrown because the query is trying to parse db.hyphenated-database.find({})
. The fix for this is to change the query to be db['hyphenated-database'].find({})
, which should probably be the default as it would be correct for any naming of databases.
See: https://imgur.com/a/RFfWb