title: Mongoose Query is not fetching match data from multiple table
body: <p>I am using nodejs,mongodb and mongoose. This query is not  fetching match data from user and order table. I have read mongoose docs and alot of other articeles. It's according to it but doesn't fetch match data from tables.</p>
  <p><strong>Query code:</strong></p>
  <pre class="lang-js prettyprint-override"><code>       const data = await order
        .find({ admin_id: req.params.id })
        .populate(&quot;orderRelate&quot;);
        console.log(data);
  </code></pre>
  <p><strong>My user and order schema code is:</strong></p>
  <pre class="lang-js prettyprint-override"><code>const mongoose = require(&quot;mongoose&quot;);
  const UserSchema = new mongoose.Schema(
    {
      username: { type: String, required: true, unique: true },
      email: { type: String, required: true, unique: true },
      password: { type: String, required: true },
      mobile_no: { type: Number, required: true },
      profilePic: { type: String, defaut: &quot;&quot; },
      owner: { type: Boolean, defaut: false },
    },
    { timestamps: true }
  );
  const orderSchema = new mongoose.Schema(
    {
      customer_id: { type: String, required: true },
      admin_id: { type: String, required: true },
      order_type: { type: String, defaut: &quot;normal&quot; },
      order_status: { type: String, required: true },
      order_price: { type: Number, required: true },
      order_address: { type: String, required: true },
      order_pickDate: { type: String, required: true },
      order_pickTime: { type: String, required: true },
       orderRelate: [{ type: mongoose.Schema.Types.ObjectId, ref: &quot;User&quot; }],
    },
    { timestamps: true }
  );
  module.exports = mongoose.model(&quot;User&quot;, UserSchema);
  module.exports = mongoose.model(&quot;Order&quot;, orderSchema); 
  </code></pre>
  <p>Please let me know if anyone know why I am facing this issue.
  Thanks</p>