title: Getting Enum key based on value retrieved from mongo
body: <p>My enum is as follows -</p>
  
  <pre><code>enum MyEnum 
  {
      Login,//(1),
      Password,//(2),
      OTP,//(3),
      Settings,//(4),
      ButtonClicked,//(5)
      //.....and so on.
  }
  </code></pre>
  
  <p>The data I receive is as follows -</p>
  
  <pre><code>{ "_id" : 1, "count" : 558 }
  { "_id" : 3, "count" : 554 }
  { "_id" : 2, "count" : 554 }
  ....
  </code></pre>
  
  <p>Now i want to print it as </p>
  
  <pre><code>{ "_id" : "Login", "count" : 558 }
  { "_id" : "OTP", "count" : 554 }
  { "_id" : "Password", "count" : 554 }
  </code></pre>
  
  <p>This is to be done in MongoDB. I'm fairly new to the tech and I would really like some help with this.</p>