title: async/await display data in global scope
body: <p>This is my first time using promises and mongoose, and I'm trying to save data to global variable for later  use</p>
  <pre><code>const getUser = async () =&gt; {
      let user 
      try {
         user = await clientModel.findOne({username: email})
         consoe.log(user) 
      } catch (e) {
        console.log(e)
      }
      return  user
    }
  
    const filteredUser = getUser().then((value) =&gt; {
      return value
    }).catch((e) =&gt; console.log(e));
  
    console.log(filteredUser)
  </code></pre>
  <p>user console log displays content:</p>
  <pre><code>{
    _id: new ObjectId(&quot;61aa75c64e1526131d98f2a1&quot;),
    username: 'paul@beatles.uk',
    chequing: null,
    saving: '1000022',
    __v: 0
  }
  </code></pre>
  <p>but filteredUser keeps displaying <code>Promise { &lt;pending&gt; }</code></p>