I'm trying to run this MongoDB script:
db.test_collection.insert({
_id: ObjectId(7df78ad8902c),
title: ‘Mongo Db practice’,
description: ‘this class is about MongoDB’
})
and keep getting this error:
SyntaxError: identifier starts immediately after numeric literal @(shell):1:42
I think it has to do with with the _id and the ObjectId(7df78ad8902c) because when I put ObjectId("stringliteral") the error message changes.
Any help is appreciated.