creates a new random ObjectId.
ObjectId[hexstring]creates an ObjectId with the specified hex string. When performing queries, _id fields are automatically converted to ObjectId. Use this when fields other than _id are of type ObjectId.