Driver Testing Tools

Note

This legacy documentation does not necessarily reflect the current practices in MongoDB driver implementation, but may be useful for historical purposes. See the MongoDB Meta Driver for the current documentation of MongoDB driver implementation.

Object IDs

  • driverOIDTest for testing toString

    > db.runCommand( { "driverOIDTest" : new ObjectId() } )
    {
        "oid" : ObjectId("4b8991f221752a6e61a88267"),
        "str" : "4b8991f221752a6e61a88267",
        "ok" : 1
    }