Skip to content

Commit aef2130

Browse files
authored
DOCSP-29465 Add Instruqt Lab to db.collection.find (#4288) (#4776)
* DOCSP-29465 Instruqt db.collection.find * add lab * fixes * space * setup hotbox * page formatting * Revert "page formatting" This reverts commit 7aabae7df083645fcb1b35086491ef75a08c5066. * remove directive * updated lab w/ atlas * correct embed string * intro include * IF feedback * update lab link * prod instruqt link
1 parent 361ea8e commit aef2130

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
You do not need to install anything. Click the :guilabel:`Launch` button in the
2+
in-browser Integrated Development Environment to start the lab.

source/reference/method/db.collection.find.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,16 @@ Client Disconnection
215215

216216
.. include:: /includes/extracts/4.2-changes-disconnect.rst
217217

218+
Try It Yourself
219+
---------------
220+
221+
The following lab walks you through how to use the ``db.collection.find()``
222+
method to find documents using equality match and the :query:`$in` operator.
223+
224+
.. include:: /includes/fact-instruqt-intro.rst
225+
226+
.. instruqt:: /mongodb-docs/tracks/db-collection-find?token=em_QKWBdDpRWvGirycJ
227+
218228
Examples
219229
--------
220230

@@ -500,7 +510,7 @@ collection </reference/bios-example-collection>`.
500510
db.bios.find(
501511
{ "awards.award": "Turing Award" }
502512
)
503-
513+
504514
- The following operation returns documents in the :doc:`bios
505515
collection </reference/bios-example-collection>` where the ``awards``
506516
array contains at least one element with both the ``award`` field

0 commit comments

Comments
 (0)