Problem Statement/Rationale
MONGOSH-865 added support for integer parameters in ObjectId(). The BSON Type error message for a bad parameter doesn't include integers
Steps to Reproduce
Enter:
x = ObjectId("badParameterValue")
Expected Results
Something like:
BSONTypeError: Argument passed in must be a string of 12 bytes, a string of 24 hex characters, or an integer.
Actual Results
BSONTypeError: Argument passed in must be a string of 12 bytes or a string of 24 hex characters
Additional Notes
None.