Dot notation
Reference group: BSON types and field properties
What it does
Addresses nested fields in queries and update paths.
Syntax
"parent.child"
Use case
Filter/update nested objects.
Dot notation: practical example
db.users.find({ "profile.theme": "dark" })💡 Explanation
Addresses nested fields in queries and update paths.
When to use it
Filter/update nested objects.
Key Takeaways
- Addresses nested fields in queries and update paths.
- Typical use: Filter/update nested objects.