I have found a collection in one of our MongoDB databases with the name my.collection.
my.collection
Is there a way to access this collection from the MongoDB shell,
try this instead:
db["my.collection"].findOne();
you run into the same issue with hyphens or any other name that does not match on [a-zA-Z_$][0-9a-zA-Z_$]
This limitation comes from valid named for javascript object properties.