Skip to content

Commit 8db9eba

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ 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+
If ``nameOnly`` is enabled, your ``filter`` expression can only
30+
filter based on collection names. No other fields are available.
31+
2832
.. versionadded:: 4.0
2933
3034
interface: dbcommand

0 commit comments

Comments
 (0)