Skip to content

Commit fc6eb99

Browse files
committed
(DOCS-11858): clarify filter + nameOnly behavior in the listCollections dbcommand
1 parent fcfc435 commit fc6eb99

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

source/includes/apiargs-dbcommand-listCollections-field.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ description: |
2121
Returning just the name and type (``view`` or ``collection``) does
2222
not take collection-level locks whereas returning full collection
2323
information locks each collection in the database.
24-
2524
2625
The default value is ``false``.
2726
27+
.. note::
28+
29+
When ``nameOnly`` is ``true``, your ``filter`` expression can only
30+
filter based on a collection's name and type. No other fields are
31+
available.
32+
2833
.. versionadded:: 4.0
2934
3035
interface: dbcommand

source/reference/command/listCollections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Output
9898
- Type
9999
- Description
100100

101-
* - name
101+
* - name
102102
- String
103103
- Name of the collection.
104104

0 commit comments

Comments
 (0)