@@ -7,8 +7,16 @@ View Recent Queries
77
88.. default-domain:: mongodb
99
10- You can view up to 20 of the most recent queries for that collection.
11- Click a query in the list to populate the query bar with that query.
10+ .. contents:: On this page
11+ :local:
12+ :backlinks: none
13+ :depth: 1
14+ :class: singlecol
15+
16+ You can view up to 20 of the most recent queries for a collection in the
17+ recent queries menu. To open the recent queries menu, click the :icon-lg:`Clock`
18+ icon in the query bar. Click a query in the list to populate the query bar with
19+ that query.
1220
1321.. figure:: /images/compass/query-history-select.png
1422 :figwidth: 500px
@@ -33,6 +41,26 @@ You can also hover over a query and perform the following actions:
3341 * - :icon-fa5:`trash-alt`
3442 - Remove the query from the :guilabel:`Recent` list.
3543
44+
45+ Query Autocomplete Menu
46+ -----------------------
47+
48+ If the query bar is empty, you can click the filter bar to open the
49+ query autocomplete menu and view up to 50 of your most recent queries. To scroll
50+ through your most recent queries, you can use the :kbd:`↑` and :kbd:`↓` arrow
51+ keys. If a query is highlighted on the menu, it displays a pop-up panel that
52+ shows the filter, project, and sort stages of the query. To select a query from
53+ the autocomplete menu, press :kbd:`Enter`, press :kbd:`Tab`, or click the query.
54+
55+ If you start typing into the filter bar, the autocomplete menu filters results
56+ to only display recent queries that include the specified string. If you start
57+ typing into the other option fields, such as :guilabel:`Project` or
58+ :guilabel:`Sort`, the autocomplete menu only displays recent queries that
59+ include those fields.
60+
61+ .. figure:: /images/compass/query-autocomplete.png
62+ :alt: Compass query autocomplete menu
63+
3664.. seealso::
3765
3866 To learn how to write queries to filter your data, see
0 commit comments