{
    "mode": "perldoc",
    "parameter": "MongoDB::UpdateResult",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/MongoDB%3A%3AUpdateResult/json",
    "generated": "2026-06-15T14:20:25Z",
    "synopsis": "my $result = $coll->update( @parameters );\nif ( $result->acknowledged ) {\n...\n}",
    "sections": {
        "NAME": {
            "content": "MongoDB::UpdateResult - MongoDB update result object\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version v2.2.2\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $result = $coll->update( @parameters );\n\nif ( $result->acknowledged ) {\n...\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class encapsulates the results from an update or replace operations.\n",
            "subsections": []
        },
        "ATTRIBUTES": {
            "content": "matchedcount\nThe number of documents that matched the filter.\n\nmodifiedcount\nThe number of documents that were modified. Note: this is only available from MongoDB version\n2.6 or later. It will return \"undef\" from earlier servers.\n\nYou can call \"hasmodifiedcount\" to find out if this attribute is defined or not.\n\nupsertedid\nThe identifier of the inserted document if an upsert took place. If no upsert took place, it\nreturns \"undef\".\n",
            "subsections": []
        },
        "METHODS": {
            "content": "acknowledged\nIndicates whether this write result was acknowledged. Always true for this class.\n\nassert\nThrows an error if write errors or write concern errors occurred. Otherwise, returns the\ninvocant.\n\nassertnowriteerror\nThrows a MongoDB::WriteError if write errors occurred. Otherwise, returns the invocant.\n\nassertnowriteconcernerror\nThrows a MongoDB::WriteConcernError if write concern errors occurred. Otherwise, returns the\ninvocant.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   David Golden <david@mongodb.com>\n\n*   Rassi <rassi@mongodb.com>\n\n*   Mike Friedman <friedo@friedo.com>\n\n*   Kristina Chodorow <k.chodorow@gmail.com>\n\n*   Florian Ragwitz <rafl@debian.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n",
            "subsections": []
        }
    },
    "summary": "MongoDB::UpdateResult - MongoDB update result object",
    "flags": [],
    "examples": [],
    "see_also": []
}