AWS documentdb documentation change
Summary
Entire documentation file for the $min operator has been removed, including all examples and code samples
Security assessment
This change removes documentation content entirely but does not provide any evidence of addressing a security vulnerability. The removed content appears to be standard documentation for the $min aggregation operator with example code. There are no security warnings, vulnerability disclosures, or security-related changes mentioned in the diff. The removal could be part of content reorganization or deprecation, but without explicit security context, it cannot be classified as security-related.
Diff
diff --git a/documentdb/latest/developerguide/min.md b/documentdb/latest/developerguide/min.md index 6d5360cba..8b1378917 100644 --- a//documentdb/latest/developerguide/min.md +++ b//documentdb/latest/developerguide/min.md @@ -1 +0,0 @@ -[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#min "Open PDF") @@ -3,114 +1,0 @@ -[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html) - -Example (MongoDB Shell)Code examples - -# $min - -The `$min` operator returns the minimum value from an array of values. It can be used in aggregation stages to find the minimum value for a specified field across multiple documents. - -**Parameters** - - * `expression`: The expression to evaluate. This can be a field path, a variable, or any expression that resolves to a value. - - - - -## Example (MongoDB Shell) - -The following example demonstrates the usage of the `$min` operator to find the minimum value of the `age` field across multiple documents. - -**Create sample documents** - - - db.users.insertMany([ - { name: "John", age: 35 }, - { name: "Jane", age: 28 }, - { name: "Bob", age: 42 }, - { name: "Alice", age: 31 } - ]); - -**Query example** - - - db.users.aggregate([ - { $group: { _id: null, minAge: { $min: "$age" } } }, - { $project: { _id: 0, minAge: 1 } } - ]) - -**Output** - - - [ { minAge: 28 } ] - -## Code examples - -To view a code example for using the `$min` command, choose the tab for the language that you want to use: - -Node.js - - - - const { MongoClient } = require('mongodb'); - - async function findMinAge() { - 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 users = db.collection('users'); - - const result = await users.aggregate([ - { $group: { - _id: null, - minAge: { $min: "$age" } - }} - ]).toArray(); - - console.log(result); - client.close(); - } - - findMinAge(); - -Python - - - - from pymongo import MongoClient - - def find_min_age(): - client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false') - db = client['test'] - users = db.users - - result = list(users.aggregate([ - { "$group": { - "_id": None, - "minAge": { "$min": "$age" } - }} - ])) - - print(result) - client.close() - - find_min_age() - - **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) - -$millisecond - -$minute - -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.