/* @flow */
import mongodb from "mongodb";

mongodb.ObjectId.isValid("000000000000000000000000");
// $FlowExpectedError[incompatible-call]
mongodb.ObjectId.isValid(null);

const mongo = new mongodb.ObjectId();
const id: string = mongo.generate();

mongodb.MongoClient.connect();
