<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aravind</title>
    <description>The latest articles on DEV Community by Aravind (@aravind_66ac0038974374783).</description>
    <link>https://dev.to/aravind_66ac0038974374783</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3322931%2Fa6500adb-1d07-4c62-a214-4b8a5a8e5394.png</url>
      <title>DEV Community: Aravind</title>
      <link>https://dev.to/aravind_66ac0038974374783</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aravind_66ac0038974374783"/>
    <language>en</language>
    <item>
      <title>Mongodb Session</title>
      <dc:creator>Aravind</dc:creator>
      <pubDate>Mon, 06 Oct 2025 10:17:55 +0000</pubDate>
      <link>https://dev.to/aravind_66ac0038974374783/mongodb-session-4ah8</link>
      <guid>https://dev.to/aravind_66ac0038974374783/mongodb-session-4ah8</guid>
      <description>&lt;h2&gt;
  
  
  Steps to create MondoDb compass and integrate with Atlas!
&lt;/h2&gt;

&lt;p&gt;=&amp;gt;Go to the Mogodb compass website:[&lt;a href="https://www.mongodb.com/try/download/compass" rel="noopener noreferrer"&gt;https://www.mongodb.com/try/download/compass&lt;/a&gt;] and install it on your system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx4m0zh1qniwjuhq0z4if.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx4m0zh1qniwjuhq0z4if.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt;Then sigin/up to the mongodb atlas.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa23cygkr0rs1p9pnyh1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa23cygkr0rs1p9pnyh1.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;br&gt;
=&amp;gt; Create cluster using the free plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8ewoe3ixzyb3ujkk5fu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8ewoe3ixzyb3ujkk5fu.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt;Select the browse collection option and click the create database button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6u0jwg1n83kaip0yci77.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6u0jwg1n83kaip0yci77.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Insert new Document add a field and click insert.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzlvwbt202cut994m1hj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzlvwbt202cut994m1hj.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; You can see the changes below!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdtss22a47mfyexrxp4g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdtss22a47mfyexrxp4g.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Connect to the cluster by &lt;br&gt;
  -&amp;gt; entering default ip address&lt;br&gt;
  -&amp;gt; username and password&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5h60r2c0qsjdoxt86tz3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5h60r2c0qsjdoxt86tz3.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Copy the connection string and go to the mongodb compass&lt;br&gt;
  -&amp;gt; select add new connection.&lt;br&gt;
  -&amp;gt; paste the URI field with copied string and click connect.&lt;br&gt;
  -&amp;gt; You can see the DB has connected successfully!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F229z3dy5y42abgsp7usm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F229z3dy5y42abgsp7usm.png" alt=" " width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt;Here under the new connection you can see your database name and the collection name.&lt;br&gt;
-&amp;gt; After select that you can see the document with data you have been inserted in the Atlas.&lt;br&gt;
     Click the MongoDB Shell in top right corner!&lt;br&gt;
=&amp;gt; CRUD Operations&lt;br&gt;
1 -&amp;gt; Create operations&lt;br&gt;
show dbs&lt;br&gt;
use test&lt;br&gt;
show collections&lt;br&gt;
db.students.find()&lt;br&gt;
db        // shows current database&lt;br&gt;
use sample&lt;br&gt;
db        // now shows “sample”&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuobm81nu2pgy9kppvcf7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuobm81nu2pgy9kppvcf7.png" alt=" " width="800" height="434"&gt;&lt;/a&gt;&lt;br&gt;
2 -&amp;gt;Add Values&lt;br&gt;
=&amp;gt; One values&lt;br&gt;
db.students.insertOne({ name: "Aravind", age: 20, dept: "Cybersecurity" })&lt;br&gt;
=&amp;gt; Multiple values&lt;br&gt;
db.students.insertMany([&lt;br&gt;
  { name: "Ravi", age: 21, dept: "CSE" },&lt;br&gt;
  { name: "Divya", age: 22, dept: "AI" },&lt;br&gt;
  { name: "Priya", age: 23, dept: "Data Science" }&lt;br&gt;
])&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4esiywllbnc70drj2fm2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4esiywllbnc70drj2fm2.png" alt=" " width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/santhoshnc"&gt;@santhoshnc&lt;/a&gt; &lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/suryaganthan"&gt;@suryaganthan&lt;/a&gt; &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
