<?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: Rishav Raj</title>
    <description>The latest articles on DEV Community by Rishav Raj (@rishavraj221).</description>
    <link>https://dev.to/rishavraj221</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%2F701811%2F33546368-752a-49f0-9ed3-600bf9e44845.png</url>
      <title>DEV Community: Rishav Raj</title>
      <link>https://dev.to/rishavraj221</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rishavraj221"/>
    <language>en</language>
    <item>
      <title>How to wait for a function to finish with all its inside expressions, in router in mongoose?</title>
      <dc:creator>Rishav Raj</dc:creator>
      <pubDate>Wed, 08 Sep 2021 16:28:04 +0000</pubDate>
      <link>https://dev.to/rishavraj221/how-to-wait-for-a-function-to-finish-with-all-its-inside-expressions-in-router-in-mongoose-5213</link>
      <guid>https://dev.to/rishavraj221/how-to-wait-for-a-function-to-finish-with-all-its-inside-expressions-in-router-in-mongoose-5213</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/69106315/how-to-wait-for-a-function-to-finish-with-all-its-inside-expressions-in-router" rel="noopener noreferrer"&gt;
            How to wait for a function to finish with all its inside expressions, in router in mongoose?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep  8 '21&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 1&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/69106315/how-to-wait-for-a-function-to-finish-with-all-its-inside-expressions-in-router" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I just want to change the value of a key of all the objects inside an array&lt;/p&gt;
&lt;p&gt;What I want actually -&lt;/p&gt;
&lt;p&gt;The object which I queried from the database is -&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  _id: 61389277fa5c742caf959885
  title: 'What is GRE?',
  forumTab: 'GRE',
  askedAt: 2021-09-08T10:37:43.979Z,
  askedBy: {
    _id: 60f0a6a9b4259f7ef9c49cc8,
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/69106315/how-to-wait-for-a-function-to-finish-with-all-its-inside-expressions-in-router" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>mongodb</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
