![](/img/trans.png)
[英]Push an object to a nested array within a document but use a value from a field in the root document
我一直在為這個問題撓頭。 我試圖尋找解決方案,但沒有找到與我的特定用例相關的任何內容。 有人能幫我嗎? 假設我有一組“折扣”文檔,重要的是它們有一個“金額”字段來說明折扣的價值。 每當兌換折扣時,我現在都想跟蹤兌換時的價值。 為此,我一直在嘗試使用以下代碼:await datastore.colle ...