I am trying to insert a document into mongodb under the inspections collection but no matter what I try, I get an error!
The code I am trying:
db.inspections.insertOne({
"_id": 20032-2020-ACME,
certificate_number: 9998888,
business_name: "ACME Explosives",
date: newDate("09-05-2022"),
result: "Business Padlocked",
sector: "Explosive Retail Dealer-999",
{
"address":"number->1721" "street-> Boom Road" "city->BRONX" "zip->10463"}
}
This is the error I keep getting:
E QUERY [js] uncaught exception: SyntaxError: expected property name, got '{' :
I have tried to replace the brackets, tried formatting in a different way, tried using without quotes or switching quotes around but each attempt gives me this same error.
How can I fix this?