<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Databases and Collections in MongoDB
  <a class="headerlink leafygreen-ui-1kepx47" href="#databases-and-collections-in-mongodb" 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="databases-and-collections-in-mongodb">
   </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="#overview" target="_self">
     <span>
      Overview
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#databases" target="_self">
     <span>
      Databases
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#collections" target="_self">
     <span>
      Collections
     </span>
    </a>
   </li>
  </ul>
 </div>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Overview
   <a class="headerlink leafygreen-ui-1kepx47" href="#overview" 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="overview">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB stores data records as
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-document">
    documents
   </a>
   (specifically
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/document/#std-label-bson-document-format">
    BSON documents
   </a>
   ) which are
gathered together in
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-collection">
    collections
   </a>
   .  A
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-database">
    database
   </a>
   stores one or more collections of documents.
  </p>
  <p class="leafygreen-ui-1kp3ins">
   You can manage
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/atlas-ui/databases/" target="_self">
    <span>
     databases
    </span>
   </a>
   and
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/atlas-ui/collections/" target="_self">
    <span>
     collections
    </span>
   </a>
   on the Atlas cluster from
the Atlas UI,
   <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>
   , or
   <!-- -->
   MongoDB Compass
   <!-- -->
   . This page describes
how to manage databases and collections on the Atlas cluster from the
Atlas UI. For self-managed deployments, you can use
   <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>
   or
   <!-- -->
   MongoDB Compass
   <!-- -->
   to manage databases and collections.
  </p>
  <p class="leafygreen-ui-1kp3ins">
   Select the client that you want to use to manage databases and
collections.
  </p>
  <div aria-hidden="true">
  </div>
  <div class="leafygreen-ui-1b75luy" data-lgid="lg-tabs">
   <div class="leafygreen-ui-jp7pox" id="tabs-5">
    <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
     <button aria-controls="_yx232qa2m" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_a7nu8t7sr" name="" role="tab" tabindex="0">
      <div class="leafygreen-ui-1nxuzmg">
       Atlas UI
      </div>
     </button>
     <button aria-controls="_ov3amtdnc" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_xa21jkfat" name="" role="tab" tabindex="-1">
      <div class="leafygreen-ui-1nxuzmg">
       mongosh
      </div>
     </button>
     <button aria-controls="_4ziooxej4" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_gl3okcl6y" name="" role="tab" tabindex="-1">
      <div class="leafygreen-ui-1nxuzmg">
       MongoDB Compass
      </div>
     </button>
    </div>
    <div class="leafygreen-ui-ov1ktg">
     <div class="leafygreen-ui-1sg2lsz">
     </div>
    </div>
   </div>
   <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
    <div>
     <div aria-labelledby="_gcof8v7dz" class="" id="_5wi1cugtq" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        MongoDB Atlas is a multi-cloud database service that simplifies
deploying and managing your databases on the cloud providers of
your choice.
       </p>
      </div>
     </div>
    </div>
    <div>
     <div aria-labelledby="_1u22ukep4" class="leafygreen-ui-38lglc" id="_rnve7p409" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        The MongoDB Shell,
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#std-program-mongosh" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           mongosh
          </code>
         </span>
        </a>
        , is a JavaScript and Node.js
        <span class="leafygreen-ui-vm4wms" tabindex="0">
         REPL
        </span>
        environment for interacting
with MongoDB deployments. To learn more, see
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/" target="_self">
         <span>
          mongosh
          <!-- -->
          .
         </span>
        </a>
       </p>
      </div>
     </div>
    </div>
    <div>
     <div aria-labelledby="_1lt1zjrf5" class="leafygreen-ui-38lglc" id="_lrlt41g0j" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        MongoDB Compass is a powerful GUI for querying, aggregating, and
analyzing your MongoDB data in a visual environment. To learn
more, see
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/" target="_self">
         <span>
          MongoDB Compass
          <!-- -->
          .
         </span>
        </a>
       </p>
      </div>
     </div>
    </div>
   </div>
  </div>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Databases
   <a class="headerlink leafygreen-ui-1kepx47" href="#databases" 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="databases">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   In MongoDB, databases hold one or more collections of documents.
  </p>
  <div aria-hidden="true">
  </div>
  <div class="leafygreen-ui-f2qztv" data-lgid="lg-tabs">
   <div class="leafygreen-ui-jp7pox" id="tabs-11">
    <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
     <button aria-controls="_fjs8bg9n2" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_wburzibv2" name="" role="tab" tabindex="0">
      <div class="leafygreen-ui-1nxuzmg">
       Atlas UI
      </div>
     </button>
     <button aria-controls="_79p7dcon4" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_hbg9x5cjc" name="" role="tab" tabindex="-1">
      <div class="leafygreen-ui-1nxuzmg">
       mongosh
      </div>
     </button>
     <button aria-controls="_q8fp38ktx" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_xz9zdwhyz" name="" role="tab" tabindex="-1">
      <div class="leafygreen-ui-1nxuzmg">
       MongoDB Compass
      </div>
     </button>
    </div>
    <div class="leafygreen-ui-ov1ktg">
     <div class="leafygreen-ui-1sg2lsz">
     </div>
    </div>
   </div>
   <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
    <div>
     <div aria-labelledby="_fdli7hqw6" class="" id="_7b2ja5zui" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        To select a database to use, log in to Atlas and do the following:
       </p>
       <script class="structured_data" type="application/ld+json">
        {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Navigate to the Collections tab."},{"@type":"HowToStep","text":"Select the database from the list of databases in the left pane."}],"name":"Databases - Atlas UI","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
       </script>
       <div class="css-4nyere eccljxs0">
        <div class="css-1nuklj8 e1ckbxcu1">
         <div class="css-18fui5z e1ckbxcu0">
          <div class="css-19lsqsq e1ckbxcu2">
           1
          </div>
         </div>
         <div class="css-1ed38mk">
          <section>
           <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
            Navigate to the
            <span class="guilabel css-h15tq0">
             Collections
            </span>
            tab.
            <a class="headerlink leafygreen-ui-1kepx47" href="#navigate-to-the-collections-tab." 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="navigate-to-the-collections-tab.">
             </div>
            </a>
           </h3>
          </section>
         </div>
        </div>
        <div class="css-1nuklj8 e1ckbxcu1">
         <div class="css-18fui5z e1ckbxcu0">
          <div class="css-19lsqsq e1ckbxcu2">
           2
          </div>
         </div>
         <div class="css-1ed38mk">
          <section>
           <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
            Select the database from the list of databases in the left pane.
            <a class="headerlink leafygreen-ui-1kepx47" href="#select-the-database-from-the-list-of-databases-in-the-left-pane." 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="select-the-database-from-the-list-of-databases-in-the-left-pane.">
             </div>
            </a>
           </h3>
          </section>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div>
     <div aria-labelledby="_aaeg14ut1" class="leafygreen-ui-38lglc" id="_eputn0pwv" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        To select a database to use, in
        <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>
        , issue the
        <code class="leafygreen-ui-1l06pbn">
         use &lt;db&gt;
        </code>
        statement, as in the following example:
       </p>
       <script class="structured_data" type="application/ld+json">
        {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"use myDB","programmingLanguage":"JavaScript"}
       </script>
       <div class="css-16lmvu9">
        <div class="leafygreen-ui-196mwvg">
         <div class="leafygreen-ui-yzcs8i">
          <pre class="leafygreen-ui-1q4bxgx" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">use myDB</td></tr></tbody></table></code></pre>
          <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
           <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
            <div class="leafygreen-ui-xhlipt">
             <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
              <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
              </path>
             </svg>
            </div>
           </button>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div>
     <div aria-labelledby="_g9o4yjtw7" class="leafygreen-ui-38lglc" id="_7dmokdc8i" role="tabpanel">
      <div class="leafygreen-ui-1kdmo88">
       <p class="leafygreen-ui-1kp3ins">
        To select a database to use, complete the following steps:
       </p>
       <script class="structured_data" type="application/ld+json">
        {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"To learn more, see Connect to MongoDB.","name":"Start MongoDB Compass and connect to your cluster."},{"@type":"HowToStep","text":"The Databases tab opens to list the existing databases\nfor your MongoDB deployment.","name":"Select Databases from the left navigation."}],"name":"Databases - MongoDB Compass","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
       </script>
       <div class="css-4nyere eccljxs0">
        <div class="css-1nuklj8 e1ckbxcu1">
         <div class="css-18fui5z e1ckbxcu0">
          <div class="css-19lsqsq e1ckbxcu2">
           1
          </div>
         </div>
         <div class="css-1ed38mk">
          <section>
           <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
            Start
            <!-- -->
            MongoDB Compass
            <!-- -->
            and connect to your cluster.
            <a class="headerlink leafygreen-ui-1kepx47" href="#start--and-connect-to-your-cluster." 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="start--and-connect-to-your-cluster.">
             </div>
            </a>
           </h3>
           <p class="leafygreen-ui-1kp3ins">
            To learn more, see
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/connect/" target="_self">
             <span>
              Connect to MongoDB
              <!-- -->
              .
             </span>
            </a>
           </p>
          </section>
         </div>
        </div>
        <div class="css-1nuklj8 e1ckbxcu1">
         <div class="css-18fui5z e1ckbxcu0">
          <div class="css-19lsqsq e1ckbxcu2">
           2
          </div>
         </div>
         <div class="css-1ed38mk">
          <section>
           <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
            Select
            <span class="guilabel css-h15tq0">
             Databases
            </span>
            from the left navigation.
            <a class="headerlink leafygreen-ui-1kepx47" href="#select-databases-from-the-left-navigation." 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="select-databases-from-the-left-navigation.">
             </div>
            </a>
           </h3>
           <p class="leafygreen-ui-1kp3ins">
            The
            <span class="guilabel css-h15tq0">
             Databases
            </span>
            tab opens to list the existing databases
for your MongoDB deployment.
           </p>
          </section>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Create a Database
    <a class="headerlink leafygreen-ui-1kepx47" href="#create-a-database" 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="create-a-database">
     </div>
    </a>
   </h3>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-f2qztv" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-21">
     <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_syjm74c5w" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_iy22cpu3t" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Atlas UI
       </div>
      </button>
      <button aria-controls="_qlhwmjdnp" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_724qklhdf" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        mongosh
       </div>
      </button>
      <button aria-controls="_w66ov9z6y" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_ql51337ms" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        MongoDB Compass
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_le4cx5x1l" class="" id="_ezzw3wbbi" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         To create a new database, log in to Atlas and do the following:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Navigate to the Collections tab."},{"@type":"HowToStep","text":"Click Create Database."},{"@type":"HowToStep","text":"Enter the database and the collection name to create the\ndatabase and its first collection.","name":"Enter the Database Name and the Collection Name."},{"@type":"HowToStep","text":"Upon successful creation, the database and the collection\ndisplays in the left pane in the Atlas UI.","name":"Click Create."}],"name":"Create a Database - Atlas UI","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Navigate to the
             <span class="guilabel css-h15tq0">
              Collections
             </span>
             tab.
             <a class="headerlink leafygreen-ui-1kepx47" href="#navigate-to-the-collections-tab.-1" 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="navigate-to-the-collections-tab.-1">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create Database
             </span>
             .
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create-database." 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="click-create-database.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter the
             <span class="guilabel css-h15tq0">
              Database Name
             </span>
             and the
             <span class="guilabel css-h15tq0">
              Collection Name
             </span>
             .
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-the-database-name-and-the-collection-name." 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="enter-the-database-name-and-the-collection-name.">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             Enter the database and the collection name to create the
database and its first collection.
            </p>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create
             </span>
             .
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create." 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="click-create.">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             Upon successful creation, the database and the collection
displays in the left pane in the Atlas UI.
            </p>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_rkbja6vxa" class="leafygreen-ui-38lglc" id="_u9u08otis" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         If a database does not exist, MongoDB creates the database when you
first store data for that database. As such, you can switch to a
non-existent database and perform the following operation in
         <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>
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"use myNewDB\n\ndb.myNewCollection1.insertOne( { x: 1 } )","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">use myNewDB</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-property">myNewCollection1</span>.<span class="lg-highlight-title lg-highlight-function">insertOne</span>( <!-- -->{ <span class="lg-highlight-attr">x</span>: <span class="lg-highlight-number">1</span> } )</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.insertOne/#mongodb-method-db.collection.insertOne">
          <code class="leafygreen-ui-1l06pbn">
           insertOne()
          </code>
         </a>
         operation creates both the
database
         <code class="leafygreen-ui-1l06pbn">
          myNewDB
         </code>
         and the collection
         <code class="leafygreen-ui-1l06pbn">
          myNewCollection1
         </code>
         if they do
not already exist. Be sure that both the database and collection names
follow MongoDB
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/limits/#std-label-restrictions-on-db-names">
          Naming Restrictions
          <!-- -->
          .
         </a>
        </p>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_fmnj34h1y" class="leafygreen-ui-38lglc" id="_5gyi7ydez" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Open the Databases tab."},{"@type":"HowToStep","text":"Click the Create database button."},{"@type":"HowToStep","text":"Enter database and first collection names in the Create Database dialog."},{"@type":"HowToStep","text":"Click Create Database to create the database and its first collection."}],"name":"Create a Database - MongoDB Compass","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Open the
             <span class="guilabel css-h15tq0">
              Databases
             </span>
             tab.
             <a class="headerlink leafygreen-ui-1kepx47" href="#open-the-databases-tab." 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="open-the-databases-tab.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the
             <span class="guilabel css-h15tq0">
              Create database
             </span>
             button.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the-create-database-button." 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="click-the-create-database-button.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter database and first collection names in the
             <span class="guilabel css-h15tq0">
              Create Database
             </span>
             dialog.
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-database-and-first-collection-names-in-the-create-database-dialog." 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="enter-database-and-first-collection-names-in-the-create-database-dialog.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create Database
             </span>
             to create the database and its first collection.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create-database-to-create-the-database-and-its-first-collection." 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="click-create-database-to-create-the-database-and-its-first-collection.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-collections">
   </span>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Collections
   <a class="headerlink leafygreen-ui-1kepx47" href="#collections" 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="collections">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB stores documents in collections. Collections are analogous to
tables in relational databases.
  </p>
  <div class="css-1yvtw5i ej97su30">
   <div role="button" tabindex="-1">
    <img alt="A collection of MongoDB documents." class="leafygreen-ui-1qnf57e" height="300" src="/docs/manual/images/crud-annotated-collection.bakedsvg.svg" style="--border-color:#C1C7C6" width="600"/>
    <div class="css-19pi7x2 ej97su31" style="--color:#444">
     click to enlarge
    </div>
   </div>
  </div>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Create a Collection
    <a class="headerlink leafygreen-ui-1kepx47" href="#create-a-collection" 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="create-a-collection">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    If a collection does not exist, MongoDB creates the collection when you
first store data for that collection.
   </p>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-f2qztv" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-32">
     <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_4i8yt9bev" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_qnvo55cy9" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Atlas
       </div>
      </button>
      <button aria-controls="_43zqgtuec" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_dj3p7hy6w" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        mongosh
       </div>
      </button>
      <button aria-controls="_9cn1kqabu" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_hea5zfy1r" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        MongoDB Compass
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_f4qehpag7" class="" id="_0uvok7kh1" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         To create a new collection, log in to Atlas and do the following:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Navigate to the Collections tab."},{"@type":"HowToStep","text":"Click the + icon for the database."},{"@type":"HowToStep","text":"Enter the name of the collection."},{"@type":"HowToStep","text":"Upon successful creation, the collection displays underneath\nthe database in the Atlas UI.","name":"Click Create."}],"name":"Create a Collection - Atlas","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Navigate to the
             <span class="guilabel css-h15tq0">
              Collections
             </span>
             tab.
             <a class="headerlink leafygreen-ui-1kepx47" href="#navigate-to-the-collections-tab.-2" 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="navigate-to-the-collections-tab.-2">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the
             <span class="guilabel css-h15tq0">
              +
             </span>
             icon for the database.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the---icon-for-the-database." 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="click-the---icon-for-the-database.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter the name of the collection.
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-the-name-of-the-collection." 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="enter-the-name-of-the-collection.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create
             </span>
             .
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create.-1" 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="click-create.-1">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             Upon successful creation, the collection displays underneath
the database in the Atlas UI.
            </p>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_kzaeujh90" class="leafygreen-ui-38lglc" id="_r2zdwowh8" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.myNewCollection2.insertOne( { x: 1 } )\ndb.myNewCollection3.createIndex( { y: 1 } )","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-property">myNewCollection2</span>.<span class="lg-highlight-title lg-highlight-function">insertOne</span>( <!-- -->{ <span class="lg-highlight-attr">x</span>: <span class="lg-highlight-number">1</span> } )</td></tr><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-property">myNewCollection3</span>.<span class="lg-highlight-title lg-highlight-function">createIndex</span>( <!-- -->{ <span class="lg-highlight-attr">y</span>: <span class="lg-highlight-number">1</span> } )</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         Both the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.insertOne/#mongodb-method-db.collection.insertOne">
          <code class="leafygreen-ui-1l06pbn">
           insertOne()
          </code>
         </a>
         and the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.collection.createIndex/#mongodb-method-db.collection.createIndex">
          <code class="leafygreen-ui-1l06pbn">
           createIndex()
          </code>
         </a>
         operations create their
respective collection if they do not already exist. Be sure that the
collection name follows MongoDB
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/limits/#std-label-restrictions-on-db-names">
          Naming Restrictions
          <!-- -->
          .
         </a>
        </p>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_jm4wo6c0z" class="leafygreen-ui-38lglc" id="_pqt5161ct" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Click the name of the database where you to want to create a collection in the left navigation."},{"@type":"HowToStep","text":"Click the + icon next to the database name."},{"@type":"HowToStep","text":"Enter the name of the collection in the Create Collection dialog."},{"@type":"HowToStep","text":"Click Create Collection to create the collection."}],"name":"Create a Collection - MongoDB Compass","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the name of the database where you to want to create a collection in the left navigation.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the-name-of-the-database-where-you-to-want-to-create-a-collection-in-the-left-navigation." 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="click-the-name-of-the-database-where-you-to-want-to-create-a-collection-in-the-left-navigation.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the
             <span class="guilabel css-h15tq0">
              +
             </span>
             icon next to the database name.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the---icon-next-to-the-database-name." 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="click-the---icon-next-to-the-database-name.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter the name of the collection in the
             <span class="guilabel css-h15tq0">
              Create Collection
             </span>
             dialog.
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-the-name-of-the-collection-in-the-create-collection-dialog." 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="enter-the-name-of-the-collection-in-the-create-collection-dialog.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create Collection
             </span>
             to create the collection.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create-collection-to-create-the-collection." 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="click-create-collection-to-create-the-collection.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Explicit Creation
    <a class="headerlink leafygreen-ui-1kepx47" href="#explicit-creation" 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="explicit-creation">
     </div>
    </a>
   </h3>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-f2qztv" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-43">
     <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_v0icesf29" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_glur3nwu1" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Atlas
       </div>
      </button>
      <button aria-controls="_pls59cvg7" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_gg1qr7z5r" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        mongosh
       </div>
      </button>
      <button aria-controls="_qukyuhofp" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_xsrn697kz" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        MongoDB Compass
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_5u5m6zyeg" class="" id="_86sxvea1p" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         To create a new collection, log in to Atlas and do the following:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Navigate to the Collections tab."},{"@type":"HowToStep","text":"Click the + icon for the database."},{"@type":"HowToStep","text":"Enter the name of the collection."},{"@type":"HowToStep","text":"You can create one of the following types of collections:Capped collectionIf you select to create a capped collection, specify the\nmaximum size in bytes.Time Series CollectionIf you select to create a time series collection, specify\nthe time field and granularity. You can optionally specify\nthe meta field and the time for old data in the collection\nto expire.Clustered Index CollectionIf you select to create a clustered collection, you must\nspecify clustered index key value and a name for the\nclustered index.","name":"Optional. From the Additional Preferences dropdown, select the type of collection that you want to create."},{"@type":"HowToStep","text":"Upon successful creation, the collection displays underneath\nthe database in the Atlas UI.","name":"Click Create."}],"name":"Explicit Creation - Atlas","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Navigate to the
             <span class="guilabel css-h15tq0">
              Collections
             </span>
             tab.
             <a class="headerlink leafygreen-ui-1kepx47" href="#navigate-to-the-collections-tab.-3" 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="navigate-to-the-collections-tab.-3">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the
             <span class="guilabel css-h15tq0">
              +
             </span>
             icon for the database.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the---icon-for-the-database.-1" 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="click-the---icon-for-the-database.-1">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter the name of the collection.
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-the-name-of-the-collection.-1" 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="enter-the-name-of-the-collection.-1">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Optional. From the
             <span class="guilabel css-h15tq0">
              Additional Preferences
             </span>
             dropdown, select the type of collection that you want to create.
             <a class="headerlink leafygreen-ui-1kepx47" href="#optional.-from-the-additional-preferences-dropdown--select-the-type-of-collection-that-you-want-to-create." 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="optional.-from-the-additional-preferences-dropdown--select-the-type-of-collection-that-you-want-to-create.">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             You can create one of the following types of collections:
            </p>
            <ul class="leafygreen-ui-rioki0">
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/capped-collections/#std-label-manual-capped-collection">
                Capped collection
               </a>
              </p>
              <p class="leafygreen-ui-1kp3ins">
               If you select to create a capped collection, specify the
maximum size in bytes.
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/timeseries-collections/#std-label-manual-timeseries-landing">
                Time Series Collection
               </a>
              </p>
              <p class="leafygreen-ui-1kp3ins">
               If you select to create a time series collection, specify
the time field and granularity. You can optionally specify
the meta field and the time for old data in the collection
to expire.
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/clustered-collections/#std-label-clustered-collections">
                Clustered Index Collection
               </a>
              </p>
              <p class="leafygreen-ui-1kp3ins">
               If you select to create a clustered collection, you must
specify clustered index key value and a name for the
clustered index.
              </p>
             </li>
            </ul>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            5
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create
             </span>
             .
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create.-2" 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="click-create.-2">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             Upon successful creation, the collection displays underneath
the database in the Atlas UI.
            </p>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_10hbzpwgc" class="leafygreen-ui-38lglc" id="_06p35bhgg" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         MongoDB provides the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.createCollection/#mongodb-method-db.createCollection">
          <code class="leafygreen-ui-1l06pbn">
           db.createCollection()
          </code>
         </a>
         method to
explicitly create a collection with various options, such as setting
the maximum size or the documentation validation rules. If you are not
specifying these options, you do not need to explicitly create the
collection since MongoDB creates new collections when you first store
data for the collections.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         To modify these collection options, see
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/collMod/#mongodb-dbcommand-dbcmd.collMod">
          <code class="leafygreen-ui-1l06pbn">
           collMod
          </code>
          .
         </a>
        </p>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_813zmbi2u" class="leafygreen-ui-38lglc" id="_wqfbi4han" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"HowTo","steps":[{"@type":"HowToStep","text":"Click the name of the database where you to want to create a collection in the left navigation."},{"@type":"HowToStep","text":"Click the Create collection button."},{"@type":"HowToStep","text":"Enter the name of the collection and optionally, configure additional preferences."},{"@type":"HowToStep","text":"MongoDB Compass provides the following additional preferences that\nyou can configure for your collection:Create a Capped CollectionCreate a Clustered CollectionCreate a Collection with CollationCreate a Collection with Encrypted FieldCreate a Time Series Collection","name":"Click Create Collection to create the collection."}],"name":"Explicit Creation - MongoDB Compass","image":"https://webimages.mongodb.com/_com_assets/cms/kuyj2focmkbxv7gh3-stacked_default_slate_blue.svg?auto=format%252Ccompress"}
        </script>
        <div class="css-4nyere eccljxs0">
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            1
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the name of the database where you to want to create a collection in the left navigation.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the-name-of-the-database-where-you-to-want-to-create-a-collection-in-the-left-navigation.-1" 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="click-the-name-of-the-database-where-you-to-want-to-create-a-collection-in-the-left-navigation.-1">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            2
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click the
             <span class="guilabel css-h15tq0">
              Create collection
             </span>
             button.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-the-create-collection-button." 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="click-the-create-collection-button.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            3
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Enter the name of the collection and optionally, configure additional preferences.
             <a class="headerlink leafygreen-ui-1kepx47" href="#enter-the-name-of-the-collection-and-optionally--configure-additional-preferences." 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="enter-the-name-of-the-collection-and-optionally--configure-additional-preferences.">
              </div>
             </a>
            </h4>
           </section>
          </div>
         </div>
         <div class="css-1nuklj8 e1ckbxcu1">
          <div class="css-18fui5z e1ckbxcu0">
           <div class="css-19lsqsq e1ckbxcu2">
            4
           </div>
          </div>
          <div class="css-1ed38mk">
           <section>
            <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
             Click
             <span class="guilabel css-h15tq0">
              Create Collection
             </span>
             to create the collection.
             <a class="headerlink leafygreen-ui-1kepx47" href="#click-create-collection-to-create-the-collection.-1" 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="click-create-collection-to-create-the-collection.-1">
              </div>
             </a>
            </h4>
            <p class="leafygreen-ui-1kp3ins">
             MongoDB Compass
             <!-- -->
             provides the following additional preferences that
you can configure for your collection:
            </p>
            <ul class="leafygreen-ui-rioki0">
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/collections/capped-collection/" target="_self">
                <span>
                 Create a Capped Collection
                </span>
               </a>
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/collections/clustered-collection/" target="_self">
                <span>
                 Create a Clustered Collection
                </span>
               </a>
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/collections/collation-collection/" target="_self">
                <span>
                 Create a Collection with Collation
                </span>
               </a>
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/collections/encrypted-collection/" target="_self">
                <span>
                 Create a Collection with Encrypted Field
                </span>
               </a>
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/compass/current/collections/time-series-collection/" target="_self">
                <span>
                 Create a Time Series Collection
                </span>
               </a>
              </p>
             </li>
            </ul>
           </section>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Document Validation
    <a class="headerlink leafygreen-ui-1kepx47" href="#document-validation" 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="document-validation">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    By default, a collection does not require its documents to have the
same schema; i.e. the documents in a single collection do not need to
have the same set of fields and the data type for a field can differ
across documents within a collection.
   </p>
   <p class="leafygreen-ui-1kp3ins">
    However, you can enforce
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/schema-validation/">
     document validation rules
    </a>
    for a collection during update and insert operations.
See
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/schema-validation/">
     Schema Validation
    </a>
    for details.
   </p>
   <p class="leafygreen-ui-1kp3ins">
    For deployments hosted in MongoDB Atlas, the
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/performance-advisor/" target="_self">
     <span>
      Performance Advisor
     </span>
    </a>
    and the MongoDB Atlas UI detect common schema
design issues and suggest modifications that follow MongoDB best
practices. To learn more, see
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/performance-advisor/schema-suggestions/#schema-suggestions" target="_self">
     <span>
      Schema Suggestions
      <!-- -->
      .
     </span>
    </a>
   </p>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Modifying Document Structure
    <a class="headerlink leafygreen-ui-1kepx47" href="#modifying-document-structure" 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="modifying-document-structure">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    To change the structure of the documents in a collection, such as add
new fields, remove existing fields, or change the field values to a new
type, update the documents to the new structure.
   </p>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-collections-uuids">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Unique Identifiers
    <a class="headerlink leafygreen-ui-1kepx47" href="#unique-identifiers" 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="unique-identifiers">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    Collections are assigned an immutable
    <span class="leafygreen-ui-vm4wms" tabindex="0">
     UUID
    </span>
    . The
collection UUID remains the same across all members of a replica set
and shards in a sharded cluster.
   </p>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-f2qztv" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-47">
     <div aria-label="Tabs to describe usage of atlas/compass/mongosh" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_zdqsa66ts" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_tp6tpky44" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Atlas
       </div>
      </button>
      <button aria-controls="_qmgwokybn" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_aqhznfux8" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        mongosh
       </div>
      </button>
      <button aria-controls="_101yr4hd6" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_0t3pntqu9" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        MongoDB Compass
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_p3h16es1l" class="" id="_dczui3y1m" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_vwxd06jf1" class="leafygreen-ui-38lglc" id="_ykkj5sgkb" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         To retrieve the UUID for a collection, run either the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/manual/reference/command/listCollections/" target="_self">
          <span>
           listCollections
          </span>
         </a>
         command
or the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.getCollectionInfos/#mongodb-method-db.getCollectionInfos">
          <code class="leafygreen-ui-1l06pbn">
           db.getCollectionInfos()
          </code>
         </a>
         method.
        </p>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_1nfy5sfl0" class="leafygreen-ui-38lglc" id="_uw7ftz3up" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
       </div>
      </div>
     </div>
    </div>
   </div>
  </section>
 </section>
</section>
