This is from Chapter 2 -Basics, in the “replaceOne()” video lecture. Can anyone spot what the problem here maybe? Thanks.
Please add flower brackets
MongoDB Enterprise Cluster0-shard-0:PRIMARY> {
… let filter = {“title”: “House, M.D., Season Four: New Beginnings”};
… filter
… }
{ “title” : “House, M.D., Season Four: New Beginnings” }
MongoDB Enterprise Cluster0-shard-0:PRIMARY>
Hi @Abraham_32673,
If I try the same syntax like yours in terminal, it works for me. The inverted commas can be the issue in your case. Please check the following link:
Please try to copy/paste the following line in your terminal to see if it works:
let filter = {"title": "House, M.D., Season four: New Beginnings"}
When i try it on my terminal, it works. Check the screenshot below:
If the copy/paste doesn’t work, then try to type it.
Let me know, if it helps.
Thanks,
Sonali