<?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: Andrew Kwizera</title>
    <description>The latest articles on DEV Community by Andrew Kwizera (@andrewkwizera).</description>
    <link>https://dev.to/andrewkwizera</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%2F889969%2F8d5b7f0c-af2b-4fe6-9a16-b66ba7c5406e.jpeg</url>
      <title>DEV Community: Andrew Kwizera</title>
      <link>https://dev.to/andrewkwizera</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrewkwizera"/>
    <language>en</language>
    <item>
      <title>Mongodb Lessons</title>
      <dc:creator>Andrew Kwizera</dc:creator>
      <pubDate>Sun, 17 Jul 2022 20:22:13 +0000</pubDate>
      <link>https://dev.to/andrewkwizera/mongodb-lessons-4k56</link>
      <guid>https://dev.to/andrewkwizera/mongodb-lessons-4k56</guid>
      <description>&lt;p&gt;This week i learned about mongodb, different commands that can be used in the mongodb shell (mongosh). for example;&lt;br&gt;
&lt;code&gt;show dbs&lt;/code&gt; //for showing databases&lt;br&gt;
&lt;code&gt;use &amp;lt;name_of_database&amp;gt;&lt;/code&gt; //to switch to a specific database&lt;br&gt;
&lt;code&gt;show collections&lt;/code&gt; //displays collections in the database &lt;br&gt;
&lt;code&gt;db.user.insertOne({"name": Jack})&lt;/code&gt; //inserts one document to user collection&lt;br&gt;
&lt;code&gt;db.user.find({})&lt;/code&gt; //to retrieve all documents in the user's collection&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Express Middlewares</title>
      <dc:creator>Andrew Kwizera</dc:creator>
      <pubDate>Mon, 11 Jul 2022 20:22:58 +0000</pubDate>
      <link>https://dev.to/andrewkwizera/express-middlewares-4982</link>
      <guid>https://dev.to/andrewkwizera/express-middlewares-4982</guid>
      <description>&lt;p&gt;Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const logger = (req,res,next) =&amp;gt; {&lt;br&gt;
   //whatever piece of code written here can be accessed by other functions&lt;br&gt;
   //always the next function has to be called&lt;br&gt;
   next()&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>node</category>
    </item>
  </channel>
</rss>
