AWS Security ChangesHomeSearch

AWS documentdb documentation change

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

File: documentdb/latest/developerguide/sqrt.md

Summary

Entire documentation file for the $sqrt operator in Amazon DocumentDB has been removed, including all examples and code samples

Security assessment

This change appears to be a routine documentation cleanup or restructuring, removing documentation for a specific MongoDB operator ($sqrt). There is no evidence in the diff of any security vulnerability, incident, or security-related content being addressed. The removed content was purely functional documentation about mathematical operations in DocumentDB.

Diff

diff --git a/documentdb/latest/developerguide/sqrt.md b/documentdb/latest/developerguide/sqrt.md
index c54810149..8b1378917 100644
--- a//documentdb/latest/developerguide/sqrt.md
+++ b//documentdb/latest/developerguide/sqrt.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#sqrt "Open PDF")
@@ -3,147 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $sqrt
-
-New from version 4.0.
-
-The `$sqrt` operator in Amazon DocumentDB is used to calculate the square root of a number.
-
-**Parameters**
-
-  * `expression`: The argument can be any valid expression as long as it resolves to a non-negative number.
-
-
-
-
-## Example (MongoDB Shell)
-
-The following example demonstrates the usage of the `$sqrt` operator to calculate the square root of a number.
-
-**Create sample documents**
-    
-    
-    db.numbers.insertMany([
-      { "_id": 1, "number": 16 },
-      { "_id": 2, "number": 36 },
-      { "_id": 3, "number": 64 }
-    ]);
-
-**Query example**
-    
-    
-    db.numbers.aggregate([
-      { $project: {
-        "_id": 1,
-        "square_root": { $sqrt: "$number" }
-      }}
-    ]);
-
-**Output**
-    
-    
-    [
-      { _id: 1, square_root: 4 },
-      { _id: 2, square_root: 6 },
-      { _id: 3, square_root: 8 }
-    ]
-
-## Code examples
-
-To view a code example for using the `$sqrt` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function example() {
-      const client = await MongoClient.connect('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false');
-    
-      try {
-          await client.connect();
-    
-          const db = client.db('test');
-          const collection = db.collection('numbers');
-    
-          const pipeline = [
-            {
-              $project: {
-                _id: 1,
-                square_root: { $sqrt: '$number' }
-              }
-            }
-          ];
-    
-          const results = await collection.aggregate(pipeline).toArray();
-    
-          console.dir(results, { depth: null });
-    
-        } finally {
-          await client.close();
-        }
-    }
-    
-    example().catch(console.error);
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def example():
-      
-      client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-    
-      try:
-          db = client.test
-          collection = db.numbers
-    
-          pipeline = [
-              {
-                  "$project": {
-                      "_id": 1,
-                      "square_root": { 
-                        "$sqrt": "$number" 
-                      }
-                  }
-              }
-          ]
-    
-          results = collection.aggregate(pipeline)
-    
-          for doc in results:
-              print(doc)
-    
-      except Exception as e:
-          print(f"An error occurred: {e}")
-    
-      finally:
-          client.close()
-    
-    example()
-
-![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)
-
-$split
-
-$strLenBytes
-
-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.