AWS Security ChangesHomeSearch

AWS documentdb documentation change

Service: documentdb · 2026-03-28 · Documentation low

File: documentdb/latest/developerguide/dollarBrackets-update.md

Summary

Removed entire documentation page for the $[] all positional operator (including examples and code samples)

Security assessment

This change removes documentation about a MongoDB operator feature. There is no evidence in the diff that this removal addresses a security issue. The removed content appears to be standard operational documentation without security context or implications.

Diff

diff --git a/documentdb/latest/developerguide/dollarBrackets-update.md b/documentdb/latest/developerguide/dollarBrackets-update.md
index 0ed1fc78a..8b1378917 100644
--- a//documentdb/latest/developerguide/dollarBrackets-update.md
+++ b//documentdb/latest/developerguide/dollarBrackets-update.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#dollarBrackets-update "Open PDF")
@@ -3,117 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $[]
-
-The `$[]` all positional operator updates all elements in an array. It is used when you need to modify every element in an array field.
-
-**Parameters**
-
-  * `field.$[]`: The array field with the all positional operator to update all elements.
-
-
-
-
-## Example (MongoDB Shell)
-
-The following example demonstrates using the `$[]` operator to update all array elements.
-
-**Create sample documents**
-    
-    
-    db.products.insertOne({
-      _id: 1,
-      name: "Laptop",
-      prices: [1000, 1100, 1200]
-    });
-
-**Query example**
-    
-    
-    db.products.updateOne(
-      { _id: 1 },
-      { $inc: { "prices.$[]": 50 } }
-    );
-
-**Output**
-    
-    
-    {
-      "_id" : 1,
-      "name" : "Laptop",
-      "prices" : [ 1050, 1150, 1250 ]
-    }
-
-## Code examples
-
-To view a code example for using the `$[]` operator, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function updateDocument() {
-      const client = await MongoClient.connect('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false');
-      const db = client.db('test');
-      const collection = db.collection('products');
-    
-      await collection.updateOne(
-        { _id: 1 },
-        { $inc: { "prices.$[]": 50 } }
-      );
-    
-      const updatedDocument = await collection.findOne({ _id: 1 });
-      console.log(updatedDocument);
-    
-      await client.close();
-    }
-    
-    updateDocument();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def update_document():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client.test
-        collection = db.products
-    
-        collection.update_one(
-            {'_id': 1},
-            {'$inc': {'prices.$[]': 50}}
-        )
-    
-        updated_document = collection.find_one({'_id': 1})
-        print(updated_document)
-    
-        client.close()
-    
-    update_document()
-
-![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**
-
-To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
-
-[Document Conventions](/general/latest/gr/docconventions.html)
-
-$
-
-$[<identifier>]
-
-Did this page help you? - Yes
-
-Thanks for letting us know we're doing a good job!
-
-If you've got a moment, please tell us what we did right so we can do more of it.
-
-Did this page help you? - No
-
-Thanks for letting us know this page needs work. We're sorry we let you down.
-
-If you've got a moment, please tell us how we can make the documentation better.