I am trying to use mongoimport --mode-merge to apply some bulk updates to a collection. I want to update existing documents that all have _id : ObjectIDs formatted ids.
As the title suggests I am trying to import CSV data into a collection using mongoimport and a formatted CSV file. I know using the columnsHaveTypes switch I can include data types in my header line.
But in the documentation there is no mention of how to specify an ObjectID or format it in the CSV.
Any suggestions?
ps. I have been able to achieve the correct result by switching to JSON but that now involves an extra step hence the interest columnsHaveTypes.