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();