From 63183473386aa330be918bbff59a72bc00f29f21 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Thu, 22 Oct 2026 19:28:56 +0700 Subject: [PATCH] docs(databases): MongoDB search matches every field type --- connections/urls.mdx | 3 +++ databases/mongodb.mdx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/connections/urls.mdx b/connections/urls.mdx index 5db360e..2a6d4e5 100644 --- a/connections/urls.mdx +++ b/connections/urls.mdx @@ -225,6 +225,9 @@ mongodb://user:pass@host:27017/mydb?authSource=admin mongodb://user:pass@host1:27017,host2:27017,host3:27017/mydb?replicaSet=rs0 ``` +- `uuidRepresentation` sets **Legacy UUID Encoding**. +- **Copy Connection String** writes an SRV connection as `mongodb+srv://` with no port, and every option percent-encoded. + ## What the path component means The part after the host is the database name on most schemes. Seven read it differently: diff --git a/databases/mongodb.mdx b/databases/mongodb.mdx index 95748eb..93f2157 100644 --- a/databases/mongodb.mdx +++ b/databases/mongodb.mdx @@ -87,6 +87,10 @@ A field whose own name contains a dot, starts with `$` or is `__proto__` is writ The filter bar's column picker lists paths inside nested objects and arrays of objects, so `customer.country` and `items.sku` filter directly; a row on an array field chooses **any element** or **same element**, which makes one array entry satisfy every row set to it. See [Filtering](/features/filtering#nested-fields). A field name containing a literal dot is left out of the picker, since MongoDB reads a dot as a path separator; reach it with `$getField` inside `$expr`. +On MongoDB 4.2 or later, **Search All Rows** and a **contains**, **starts with** or **ends with** row also match a number, a date, a boolean or an ObjectId by the text the grid shows, so `2024-01-02` finds a date and `42` an integer. An array matches through its strings; search a nested document through its paths in the filter bar. A raw filter row that is not one whole filter document matches no documents. + +Rows a query tab returns are read only, whatever the statement. Edit a document from its collection's tab. + The Structure tab lists a collection's indexes, and [renames or removes a field](#renaming-and-removing-fields) across the whole collection. Drop an index from a query tab with `db.users.dropIndex("email_1")`. **New Database** asks for a database name and a first collection, both required. **New View** opens a query tab holding a `db.createView("view_name", "source_collection", [pipeline])` template, and editing a view pre-fills `db.runCommand({"collMod": …})`. ### Views