{"size": 487, "ext": "js", "max_stars_repo_path": "04_mongoose/findBYid.js", "max_stars_repo_name": "alphaolomi/node-basics", "max_stars_repo_stars_event_min_datetime": "2021-04-09T22:32:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-09T22:32:00.000Z", "max_issues_repo_path": "04_mongoose/findBYid.js", "max_issues_repo_name": "alphaolomi/node-basics", "max_issues_repo_issues_event_min_datetime": "2021-04-06T23:59:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-09T22:36:36.000Z", "max_forks_repo_path": "04_mongoose/findBYid.js", "max_forks_repo_name": "alphaolomi/node-basics", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 21.1739130435, "max_line_length": 43, "alphanum_fraction": 0.5872689938}
Tank.findById(id, function (err, tank) {
    if (err) return handleError(err);

    tank.size = 'large';
    tank.save(function (err, updatedTank) {
        if (err) return handleError(err);
        res.send(updatedTank);
    });
});



//  set

Tank.findById(id, function (err, tank) {
    if (err) return handleError(err);

    tank.set({ size: 'large' });
    tank.save(function (err, updatedTank) {
        if (err) return handleError(err);
        res.send(updatedTank);
    });
});