AWS Security ChangesHomeSearch

AWS documentdb documentation change

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

File: documentdb/latest/developerguide/divide.md

Summary

Removed entire documentation page for the $divide operator in Amazon DocumentDB aggregation pipeline, including all examples, code samples, and explanatory content

Security assessment

This change removes documentation content entirely but shows no evidence of addressing a security vulnerability. The removed content was standard documentation for a mathematical operator ($divide) with example usage. There are no security patches, vulnerability disclosures, or security-related warnings in the removed content. The change appears to be routine documentation maintenance or reorganization rather than security-related.

Diff

diff --git a/documentdb/latest/developerguide/divide.md b/documentdb/latest/developerguide/divide.md
index 22194dea4..8b1378917 100644
--- a//documentdb/latest/developerguide/divide.md
+++ b//documentdb/latest/developerguide/divide.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#divide "Open PDF")
@@ -3,127 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $divide
-
-The `$divide` operator in the Amazon DocumentDB aggregation pipeline is used to divide one number by another. It is a useful operator for performing mathematical operations on numeric fields within your documents.
-
-**Parameters**
-
-  * `numerator`: The dividend or the number to be divided.
-
-  * `denominator`: The divisor or the number to divide by.
-
-
-
-
-## Example (MongoDB Shell)
-
-This example demonstrates how to use the `$divide` operator to calculate the hourly rate for employees based on their yearly salary and the number of working hours per year.
-
-**Create sample documents**
-    
-    
-    db.employees.insertMany([
-      { _id: 1, name: "John Doe", salary: 80000, hoursPerYear: 2080 },
-      { _id: 2, name: "Jane Smith", salary: 90000, hoursPerYear: 2080 },
-      { _id: 3, name: "Bob Johnson", salary: 75000, hoursPerYear: 2080 }
-    ]);
-
-**Query example**
-    
-    
-    db.employees.aggregate([
-      {
-        $project: {
-          name: 1,
-          hourlyRate: { $divide: ["$salary", "$hoursPerYear"] }
-        }
-      }
-    ])
-
-**Output**
-    
-    
-    [
-      { "_id" : 1, "name" : "John Doe", "hourlyRate" : 38.46153846153846 },
-      { "_id" : 2, "name" : "Jane Smith", "hourlyRate" : 43.26923076923077 },
-      { "_id" : 3, "name" : "Bob Johnson", "hourlyRate" : 36.05769230769231 }
-    ]
-
-## Code examples
-
-To view a code example for using the `$divide` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function calculateHourlyRate() {
-      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 employees = db.collection('employees');
-    
-      const result = await employees.aggregate([
-        {
-          $project: {
-            name: 1,
-            hourlyRate: { $divide: ["$salary", "$hoursPerYear"] }
-          }
-        }
-      ]).toArray();
-    
-      console.log(result);
-      client.close();
-    }
-    
-    calculateHourlyRate();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def calculate_hourly_rate():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client.mydatabase
-        employees = db.employees
-    
-        result = list(employees.aggregate([
-            {
-                '$project': {
-                    'name': 1,
-                    'hourlyRate': { '$divide': ['$salary', '$hoursPerYear'] }
-                }
-            }
-        ]))
-    
-        print(result)
-        client.close()
-    
-    calculate_hourly_rate()
-
-![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)
-
-$dayOfYear
-
-$eq
-
-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.