How would I replace a value at a specific index in an array using MongoDB?
Lets say a collection for movie reviews has a rating array with individual numbers and I wanted to replace one with a new rating using only Indexes
let array = [1, 5, 3, 7]
How do I replace 5 with 4? Once again only using Indexes