Chapter 3 IDE SyntaxError: missing : after property id

Hi all,

trying to answer the quiz questions in chapter 3 I do the following.
What is the error? I checked it multiple times but can’t find the mistake:

db.zips.updateMany({“state”: “NY”, “city”: “NEW YORK”},{"set:" {"capital": false}})
2021-04-20T14:41:19.462+0000 E QUERY [js] SyntaxError: missing : after property id @(shell):1:64
MongoDB Enterprise atlas-xxxx-shard-0:PRIMARY>

Remark:
There is a Dollar-Sign before the set: but the board doesn’t show it

Thank you

To avoid that, format using Formatting code and log snippets in posts

As for SyntaxError: missing : after property id you have a typing error. You put the : inside the quotes of $set.

Thank you, it worked.

1 Like

Hi @Thomas_Arndt,

We are glad @steevej’s response helps you out.
Feel free to reach out if you have any questions.

Thanks,
Kushagra