AWS documentdb documentation change
Summary
Entire documentation file for the $all operator was removed, including all content, examples, and code samples
Security assessment
This change appears to be a complete removal of documentation content rather than a security-related update. There is no evidence of security vulnerability fixes, security patches, or security feature documentation being added. The removal could be part of documentation restructuring or deprecation, but without explicit security context in the diff, it cannot be classified as security-related. The change removes existing documentation including code examples with TLS configuration, but this is not evidence of addressing a specific security issue.
Diff
diff --git a/documentdb/latest/developerguide/all.md b/documentdb/latest/developerguide/all.md index 05ecddf6f..8b1378917 100644 --- a//documentdb/latest/developerguide/all.md +++ b//documentdb/latest/developerguide/all.md @@ -1 +0,0 @@ -[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#all "Open PDF") @@ -3,118 +1,0 @@ -[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html) - -Example (MongoDB Shell)Code examples - -# $all - -The `$all` operator in Amazon DocumentDB is used to match documents where the value of a field is an array and contains all the specified elements, regardless of the order of the elements in the array. - -**Parameters** - - * `field`: The name of the field to check. - - * `[value1, value2, ...]`: The list of values to match in the array. - - - - -**Using`$elemMatch` within an `$all` expression** - -See [Using $elemMatch within an $all expression](./functional-differences.html#functional-differences.elemMatch) for limitations regarding the use of the `$elemMatch` operator within an `$all` expression. - -**Dollar ($) in field names** - -See [Dollar($) and dot(.) in field names](./functional-differences.html#functional-differences-dollardot) for limitations regarding querying `$` prefixed fields in `$all` in nested objects. - -## Example (MongoDB Shell) - -The following example demonstrates the usage of the `$all` operator to retrieve documents where the "Colors" field is an array that contains both "Red" and "Blue". - -**Create sample documents** - - - db.example.insertMany([ - { "Item": "Pen", "Colors": ["Red", "Blue", "Green"] }, - { "Item": "Notebook", "Colors": ["Blue", "White"] }, - { "Item": "Poster Paint", "Colors": ["Red", "Yellow", "White"] } - ]) - -**Query example** - - - db.example.find({ "Colors": { $all: ["Red", "Blue"] } }).pretty() - -**Output** - - - { - "_id" : ObjectId("6137d6c5b3a1d35e0b6ee6ad"), - "Item" : "Pen", - "Colors" : [ - "Red", - "Blue", - "Green" - ] - } - -## Code examples - -To view a code example for using the `$all` 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'); - const db = client.db('test'); - const collection = db.collection('example'); - - const result = await collection.find({ "Colors": { $all: ["Red", "Blue"] } }).toArray(); - console.log(result); - - await client.close(); - } - - example(); - -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') - db = client['test'] - collection = db['example'] - - result = list(collection.find({ "Colors": { "$all": ["Red", "Blue"] } })) - print(result) - - client.close() - - example() - - **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) - -$ - -$and - -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.