MongoDB supports various data types including null, string, boolean, date, array, embedded documents, ObjectId, and BSON. The ObjectId data type is a unique identifier that is automatically generated. It consists of a 12-byte hexadecimal number, with the first 4 bytes representing the timestamp, next 3 bytes representing the machine identifier, following 2 bytes representing the process id, and last 3 bytes being an incrementing counter.