I originally setup my database using the course instructions and have a database called sample_mflix. This is fine because application.properties contains the line:
(all source is taken directly from the zip file).
However in Migration.java you have:
MongoDatabase mflix = MongoClients.create(mongoUri).getDatabase(“mflix”);
Note the “sample_mflix” versus " mflix".
The problem symptoms are not obvious right away since nonexistent db’s and collections can be opened.
If someone has “sample_mflix” and an old version of the db called just “mflix” that would be really hard to detect.