No collection error

I was doing the lab 2.4 quiz, but I was getting 0 results. That’s because I’ve misspelled the collection name. Why there’s no error like “Whoopsie, there’s no collection named ‘writer’”?

I guess that I’m not the only one with this “issue”.

Hi @Florentin_Radu,

If you enter a non-existent collection name in your command then MongoDB implicitly creates that collection for you and that’s why it does not throw an error that this collection does not exist.

Hope it helps!

~ Shubham