Run across this interesting problem few days ago — a collection was created with a space in it’s name. Can’t deleted with your regular db.COLLECTION.drop(); The workaround is simple and straightforward though:
db["COLLECTION NAME"].drop();
Run across this interesting problem few days ago — a collection was created with a space in it’s name. Can’t deleted with your regular db.COLLECTION.drop(); The workaround is simple and straightforward though:
db["COLLECTION NAME"].drop();
Thanks for posting this. I actually ran into the same problem today due to a typo
Thanks Bro…..
Me too facing the same problem