Import collection from JSON and convert _Id from String to ObjectId
Hi, I'm trying to import a collection from a JSON text file.
The problem is that the _id does not have a specific type in the JSON, and gets imported as a normal string. However, I need it to be an ObjectId. Is there a way to configure the import to automatically assign a desired type, or is there a query I could run afterwards to make the conversion?