mongotron icon indicating copy to clipboard operation
mongotron copied to clipboard

Error when opening db with invalid javascript naming.

Open zack37 opened this issue 8 years ago • 0 comments

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

zack37 avatar Jan 13 '17 16:01 zack37