title: Context value getting undefined inside nested Loop
body: <p>Below java-script code context value became undefined inside nested loop.but outside the nested loop the values is properly showing.</p>
  
  <p>please help to show the context value inside the loop.</p>
  
  <pre><code>module.exports = function (options = {}) { 
    return async context =&gt; {
      const { data } = context;
  
       context.app.service('emplist').find({
          query: { empId: { $in: ["12321"] } },
          paginate: false,
      }).then(result =&gt; {
  
          console.log('firstname_Inside--&gt;',context.data.firstname);
  
      }).catch((error) =&gt; {
            console.log(error);
      });
  
          console.log('firstname_Outside--&gt;',context.data.firstname);
  
      return context;
    };
  };
  </code></pre>
  
  <p>OUTPUT:-</p>
  
  <pre><code>//here value is undefined
  firstname_Inside--&gt;undefined
  
  //here value is properly showing
  firstname_Outside--&gt;sam
  </code></pre>