I am using MongoDB Compass version 1.25.0.
I was trying to insert a document shared by one of my colleague using the "Insert Document" feature of the MongoDB Compass.
But, it's showing that the document is not in correct format.
I think it is validating JSON format and ObjectId() is not a valid JSON value.
I am aware that Compass would create ObjectId() automatically but I want to pass it explicitly.
I resorted to the Shell and I was able to insert the document.
My question is does MongoDB Compass allow entering ObjectId() from the UI? If yes, what am I doing wrong?
ObjectId
. – Uncork{"$oid":"5d505646cf6d4fe581014ab2"}
it showsBSON field 'insert.documents.0' is the wrong type 'objectId', expected type 'object'
– Byebye