AWS documentdb documentation change
Summary
Entire documentation page for the $nor operator was removed, including examples, code samples, and navigation elements
Security assessment
This change removes documentation about the $nor MongoDB operator query functionality. There is no evidence in the diff that this removal addresses a specific security vulnerability or weakness. The removed content appears to be standard operator documentation with example queries and code samples in Node.js and Python. The connection strings shown in examples use TLS and proper authentication placeholders, which are security best practices, but their removal doesn't indicate a security issue.
Diff
diff --git a/documentdb/latest/developerguide/nor.md b/documentdb/latest/developerguide/nor.md index 073325e30..8b1378917 100644 --- a//documentdb/latest/developerguide/nor.md +++ b//documentdb/latest/developerguide/nor.md @@ -1 +0,0 @@ -[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#nor "Open PDF") @@ -3,124 +1,0 @@ -[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html) - -Example (MongoDB Shell)Code examples - -# $nor - -The `$nor` operator is used to match documents where none of the specified query conditions are true. It is similar to the logical "NOR" operation, where the result is true if none of the operands are true. - -**Parameters** - - * `expression1`: The first expression to evaluate. - - * `expression2`: The second expression to evaluate. - - * `expressionN`: Additional expressions to evaluate. - - - - -## Example (MongoDB Shell) - -The following example demonstrates the usage of the `$nor` operator by retrieving documents where the `qty` field is not less than 20 and the `size` field is not equal to "XL". - -**Create sample documents** - - - db.items.insertMany([ - { qty: 10, size: "M" }, - { qty: 15, size: "XL" }, - { qty: 25, size: "L" }, - { qty: 30, size: "XL" } - ]) - -**Query example** - - - db.items.find({ - $nor: [ - { qty: { $lt: 20 } }, - { size: "XL" } - ] - }) - -**Output** - - - [ - { "_id" : ObjectId("..."), "qty" : 25, "size" : "L" } - ] - -## Code examples - -To view a code example for using the `$nor` 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('items'); - - const result = await collection.find({ - $nor: [ - { qty: { $lt: 20 } }, - { size: "XL" } - ] - }).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['items'] - - result = list(collection.find({ - '$nor': [ - { 'qty': { '$lt': 20 } }, - { 'size': 'XL' } - ] - })) - - 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) - -$nin - -$not - -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.