1. db.students.update(  
  2.    { _id: 1 },  
  3.    {  
  4.      $push: {  
  5.        quizzes: {  
  6.          $each: [ { id: 3, score: 8 }, { id: 4, score: 7 }, { id: 5, score: 6 } ],  
  7.          $sort: { score: 1 }  
  8.        }  
  9.      }  
  10.    }  
  11. )  

相关文章:

  • 2022-01-20
  • 2021-12-07
  • 2022-12-23
  • 2021-12-21
  • 2021-12-21
  • 2022-12-23
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2021-06-09
  • 2022-12-23
  • 2023-03-07
  • 2021-09-20
相关资源
相似解决方案