support currying ObjectId.equals