<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  WriteResult()
  <a class="headerlink leafygreen-ui-1kepx47" href="#writeresult--" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="writeresult--">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-a5yxub">
  <p class="css-1cmx2d4 ef7gu8j0">
   On this page
  </p>
  <ul class="css-1qb0mst ef7gu8j1">
   <li class="leafygreen-ui-1e7a0ei">
    <a class="lg-ui-0001 leafygreen-ui-e98ikf" href="#definition" target="_self">
     <span>
      Definition
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#properties" target="_self">
     <span>
      Properties
     </span>
    </a>
   </li>
  </ul>
 </div>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Definition
   <a class="headerlink leafygreen-ui-1kepx47" href="#definition" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="definition">
    </div>
   </a>
  </h2>
  <dl class="method">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult()
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-method-WriteResult" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-method-WriteResult">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A wrapper that contains the result status of
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        mongosh
       </code>
      </span>
     </a>
     write methods.
    </p>
    <div class="leafygreen-ui-13vw3ie" role="note">
     <h2 class="leafygreen-ui-1fn4p2b">
      Tip
     </h2>
     <h3 class="leafygreen-ui-144d5kf">
      <strong>
       See:
      </strong>
     </h3>
     <div class="leafygreen-ui-9mycqc">
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.insert/#mongodb-method-db.collection.insert">
          <code class="leafygreen-ui-1l06pbn">
           db.collection.insert()
          </code>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.update/#mongodb-method-db.collection.update">
          <code class="leafygreen-ui-1l06pbn">
           db.collection.update()
          </code>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.remove/#mongodb-method-db.collection.remove">
          <code class="leafygreen-ui-1l06pbn">
           db.collection.remove()
          </code>
         </a>
        </p>
       </li>
      </ul>
     </div>
    </div>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.insert/#mongodb-method-db.collection.insert">
        <code class="leafygreen-ui-1l06pbn">
         db.collection.insert()
        </code>
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.update/#mongodb-method-db.collection.update">
        <code class="leafygreen-ui-1l06pbn">
         db.collection.update()
        </code>
       </a>
       are deprecated.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The results returned by the replacement methods have a different
format. For output similar to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-method-WriteResult" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          WriteResult()
         </code>
        </span>
       </a>
       , consider
using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.bulkWrite/#mongodb-method-db.collection.bulkWrite">
        <code class="leafygreen-ui-1l06pbn">
         db.collection.bulkWrite()
        </code>
        .
       </a>
      </p>
     </div>
    </div>
   </dd>
  </dl>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Properties
   <a class="headerlink leafygreen-ui-1kepx47" href="#properties" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="properties">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   The
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-method-WriteResult" target="_self">
    <span>
     <code class="leafygreen-ui-1l06pbn">
      WriteResult()
     </code>
    </span>
   </a>
   has the following properties:
  </p>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.nInserted
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.nInserted" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.nInserted">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of documents inserted, excluding
     <code class="leafygreen-ui-1l06pbn">
      upserted
     </code>
     documents.
See
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data-WriteResult.nUpserted" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        WriteResult.nUpserted
       </code>
      </span>
     </a>
     for the number of documents
inserted through an upsert.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.nMatched
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.nMatched" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.nMatched">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of documents selected for update. If the update operation
results in no change to the document, e.g.
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/update/set/#mongodb-update-up.-set">
      <code class="leafygreen-ui-1l06pbn">
       $set
      </code>
     </a>
     expression
updates the value to the current value,
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data-WriteResult.nMatched" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        nMatched
       </code>
      </span>
     </a>
     can be greater than
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data-WriteResult.nModified" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        nModified
       </code>
       .
      </span>
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.nModified
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.nModified" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.nModified">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of existing documents updated. If the update/replacement
operation results in no change to the document, such as setting the
value of the field to its current value,
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data-WriteResult.nModified" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        nModified
       </code>
      </span>
     </a>
     can be less than
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data-WriteResult.nMatched" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        nMatched
       </code>
       .
      </span>
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.nUpserted
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.nUpserted" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.nUpserted">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of documents inserted by an
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.update/#std-label-upsert-parameter">
      upsert
      <!-- -->
      .
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult._id
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult._id" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult._id">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The
     <code class="leafygreen-ui-1l06pbn">
      _id
     </code>
     of the document inserted by an
     <code class="leafygreen-ui-1l06pbn">
      upsert
     </code>
     . Returned only
if an
     <code class="leafygreen-ui-1l06pbn">
      upsert
     </code>
     results in an insert.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.nRemoved
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.nRemoved" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.nRemoved">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of documents removed.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.writeError
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeError" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeError">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A document that contains information regarding any error, excluding
write concern errors, encountered during the write operation.
    </p>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeError.code
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeError.code" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeError.code">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       An integer value identifying the error.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeError.errmsg
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeError.errmsg" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeError.errmsg">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A description of the error.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeError.errInfo
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeError.errInfo" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeError.errInfo">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A document that contains information regarding any write errors,
excluding write concern errors, that were encountered during the
write operation. When an operation fails document validation, the
server produces an error under this field explaining why the
document did not match against the collection's validator
expression.
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     WriteResult.writeConcernError
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeConcernError" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeConcernError">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Document describing errors that relate to the write concern.
    </p>
    <div>
     <p>
      <em>
       Changed
       <!-- -->
       in version
       <!-- -->
       7.1
      </em>
      :
      <!-- -->
      When
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/WriteResult/#mongodb-method-WriteResult">
       <code class="leafygreen-ui-1l06pbn">
        WriteResult()
       </code>
      </a>
      is received from
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#std-program-mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      , write concern
errors are always reported, even when one or more write
errors occur.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      In previous releases, the occurrence of write errors could
cause the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-method-WriteResult" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         WriteResult()
        </code>
       </span>
      </a>
      to not report write concern errors.
     </p>
    </div>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeConcernError.code
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeConcernError.code" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeConcernError.code">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       An integer value identifying the cause of the write concern error.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeConcernError.errmsg
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeConcernError.errmsg" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeConcernError.errmsg">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A description of the cause of the write concern error.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       WriteResult.writeConcernError.errInfo.writeConcern
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeConcernError.errInfo.writeConcern" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeConcernError.errInfo.writeConcern">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The write concern object used for the corresponding operation. For
information on write concern object fields, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/write-concern/#std-label-wc-specs">
        Write Concern Specification
        <!-- -->
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The write concern object may also contain the following field,
indicating the source of the write concern:
      </p>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         WriteResult.writeConcernError.errInfo.writeConcern.provenance
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data-WriteResult.writeConcernError.errInfo.writeConcern.provenance" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data-WriteResult.writeConcernError.errInfo.writeConcern.provenance">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         A string value indicating where the write concern originated (known as
write concern
         <code class="leafygreen-ui-1l06pbn">
          provenance
         </code>
         ). The following table shows the possible
values for this field and their significance:
        </p>
        <div class="leafygreen-ui-skkc39" tabindex="0">
         <table class="leafygreen-ui-hr8lsv">
          <colgroup>
           <col style="width:20%"/>
           <col style="width:40%"/>
          </colgroup>
          <thead class="leafygreen-ui-a9ho40">
           <tr data-testid="leafygreen-ui-header-row">
            <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
             <div class="leafygreen-ui-ui0te9">
              <div>
               Provenance
              </div>
             </div>
            </th>
            <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
             <div class="leafygreen-ui-ui0te9">
              <div>
               Description
              </div>
             </div>
            </th>
           </tr>
          </thead>
          <tbody>
           <tr class="">
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               <code class="leafygreen-ui-1l06pbn">
                clientSupplied
               </code>
              </div>
             </div>
            </td>
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               The write concern was specified in the application.
              </div>
             </div>
            </td>
           </tr>
           <tr class="">
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               <code class="leafygreen-ui-1l06pbn">
                customDefault
               </code>
              </div>
             </div>
            </td>
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               The write concern originated from a custom defined
default value. See
               <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setDefaultRWConcern/#mongodb-dbcommand-dbcmd.setDefaultRWConcern">
                <code class="leafygreen-ui-1l06pbn">
                 setDefaultRWConcern
                </code>
                .
               </a>
              </div>
             </div>
            </td>
           </tr>
           <tr class="">
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               <code class="leafygreen-ui-1l06pbn">
                getLastErrorDefaults
               </code>
              </div>
             </div>
            </td>
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               The write concern originated from the replica set's
               <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/replica-configuration/#mongodb-rsconf-rsconf.settings.getLastErrorDefaults">
                <code class="leafygreen-ui-1l06pbn">
                 settings.getLastErrorDefaults
                </code>
               </a>
               field.
              </div>
             </div>
            </td>
           </tr>
           <tr class="">
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               <code class="leafygreen-ui-1l06pbn">
                implicitDefault
               </code>
              </div>
             </div>
            </td>
            <td class="leafygreen-ui-1drjk7h">
             <div class="leafygreen-ui-1n4j8xf">
              <div>
               The write concern originated from the server in absence
of all other write concern specifications.
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </dd>
      </dl>
     </dd>
    </dl>
   </dd>
  </dl>
  <div class="leafygreen-ui-13vw3ie" role="note">
   <h2 class="leafygreen-ui-1fn4p2b">
    Tip
   </h2>
   <h3 class="leafygreen-ui-144d5kf">
    <strong>
     See also:
    </strong>
   </h3>
   <div class="leafygreen-ui-9mycqc">
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/WriteResult.hasWriteError/#mongodb-method-WriteResult.hasWriteError">
        <code class="leafygreen-ui-1l06pbn">
         WriteResult.hasWriteError()
        </code>
       </a>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/WriteResult.hasWriteConcernError/#mongodb-method-WriteResult.hasWriteConcernError">
        <code class="leafygreen-ui-1l06pbn">
         WriteResult.hasWriteConcernError()
        </code>
       </a>
      </p>
     </li>
    </ul>
   </div>
  </div>
 </section>
</section>
