Uncaught exception: SyntaxError: missing

MongoDB Enterprise atlas-qdwyhu-shard-0:PRIMARY> db.movieDetails.updateOne({title:“The Martian”},{ $set: { “awards”:{“wins”:8,“nominations”:14 “text”:“Nominated for 3 Golden Globes”}}});

While running above command then getting below error with Update on sandbox-
2020-09-20T01:01:33.473+0530 E QUERY [js] uncaught exception: SyntaxError: missing } after property list :

You are missing quotes on title
It should have given a different error but complaining about missing flower bracket
Also use straight double quotes (not inverted comma type)

1 Like

you are missing a comma, between 14 and text

1 Like

Thanks @Ramachandra_37567 it is working now !!

Thanks @steevej it is working now !!