How can I update a field in every document in Firebase Firestore from Firebase Cloud Functions? : <p>I'm making an app with a pretend stock market and I need to update a certain field (an array (prices) in an object (stock) of a document (the company). I need to have a random value between the last price - 2 and the last price + 2 and add that to the prices array for every company (document).</p>

<p>How would I go about this?</p>

<p>Thanks in advance!</p>

<p>Also any advice to simplify this question would be much appriciated!</p>
