Skip to content

Commit 6ffbb69

Browse files
DOCSP-32833 address feedback on Query Your Data (#593)
1 parent de38759 commit 6ffbb69

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

source/query/filter.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,36 @@ For more query examples, see
342342
:manual:`Query Documents </tutorial/query-documents/>`
343343
in the MongoDB manual.
344344

345+
Match by Substring
346+
~~~~~~~~~~~~~~~~~~
347+
348+
The following query filter uses the :query:`$regex` operator
349+
to find all documents where the value of ``email`` includes the term
350+
"andrea_le":
351+
352+
.. code-block:: shell
353+
354+
{ email: { $regex: "andrea_le" } }
355+
356+
The query returns the following document:
357+
358+
.. code-block:: JSON
359+
:copyable: false
360+
:emphasize-lines: 4
361+
362+
{
363+
"_id": { "$oid": "5e349915cebae490877d561d" },
364+
"name": "Andrea Le",
365+
"email": "andrea_le@fake-mail.com",
366+
"version": 5,
367+
"scores": [ 85, 95, 75 ],
368+
"dateCreated": { "$date": "2003-03-26" }
369+
}
370+
371+
For more query examples, see
372+
:manual:`Query Documents </tutorial/query-documents/>`
373+
in the MongoDB manual.
374+
345375
Supported Data Types in the Query Bar
346376
-------------------------------------
347377

0 commit comments

Comments
 (0)