It’s a bit confusing.
For testing purposes I’ve inserted the following WRONG insert-Command:
db.movies.insertOne({title: "Star Track II", year: 1982, imdb:"tt0084726" })
{
"acknowledged" : true,
"insertedId" : ObjectId("5e218dd916b5be234d9f5974")
}
You see, I insert it into db.movies, which not exists. It has to be db.moviesScratch to work.
But anyway, Mongo-DB returns true and an insertedId.
But where is the Dataset now inserted? I can’t find it anywhere. Doesn’t should MongoDB return an error here to give developers a chance to recognize this error?