isertMany error

When i try:

db.miaRaccolta.insertMany(
[
{"_id" : “tt0084726”,
“title” : “Star Trek II: The Wrath of Khan”,
},
{"_id" : “tt0117731”,
“title” : “Star Trek: First Contact”,
}
]);

i have this error:
2019-06-10T12:21:49.278+0200 E QUERY [js] TypeError: documents.map is not a function :
DBCollection.prototype.insertMany@src/mongo/shell/crud_api.js:295:1
@(shell):1:1

Hi @RAFFAELE_40395,

Can you please update to the latest Mongo Shell version?

Please let me know, if you still face any issue.

Thanks,
Sonali

my shell version is: MongoDB shell version v4.0.10

HI RAFFAELE_40395/ Sonali_48808

I think the error is due to syntax
There is an additional comma just before the closing flower bracket
Please check syntax again

Hi @RAFFAELE_40395,

@Ramachandra_37567 Thanks for pointing this out!!!

Please remove this comma after the title field value.

Thanks,
Sonali