title: Can you set the property in a get request?
body: <p>I'm trying to make a movie application using node and mongodb for back-end. And the movies have a rating property, and I created a carousel collection, that have a title property. I'm creating a list that sorts the movies by rating, but the list's title is automatically &quot;Drama&quot;, can I do something to set it to &quot;Best Rated Movies&quot;?</p>
  <pre><code>    //Carousel Schema
      const CarouselSchema = new mongoose.Schema(
      {
          title: { type: String },
          genre: { type: String },
          content: { type: Array }
      },
      { timestamps: true }
      );
  
  
     
  
      //Get Request
     
  
      router.get(&quot;/rating&quot;, async (req, res) =&gt; {
    let carousel = [];
    try {
      carousel = await Carousel.aggregate([
        { $sample: { size: 10 } },
        { $sort: { rating: 1 } }]);
      res.status(200).json(carousel);
    } catch (err) {
      res.status(500).json(err);
    }
  });
  </code></pre>