Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
A query expression to filter the list of collections.

You can specify a query expression on any of the :ref:`fields
returned <list-collection-output>` by :dbcommand:`listCollections`.
returned <list-collection-output>` by {{role}}.

interface: dbcommand
name: filter
Expand Down
11 changes: 11 additions & 0 deletions source/includes/apiargs-method-db.getCollectionInfos-param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
arg_name: param
inherit:
file: apiargs-dbcommand-listCollections-field.yaml
ref: filter
name: filter
operation: db.getCollectionInfos
interface: method
optional: true
position: 1
type: document
...
9 changes: 7 additions & 2 deletions source/reference/method/db.getCollectionInfos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ db.getCollectionInfos()
Definition
----------

.. method:: db.getCollectionInfos()
.. method:: db.getCollectionInfos(filter)

.. versionadded:: 3.0.0
.. versionadded:: 3.0

Returns an array of documents with collection or :doc:`view
</core/views>` information, such as name and options, for
Expand All @@ -24,6 +24,11 @@ Definition
The :method:`db.getCollectionInfos()` helper wraps the
:dbcommand:`listCollections` command.

The :method:`db.getCollectionInfos()` method has the following
optional parameter:

.. include:: /includes/apiargs/method-db.getCollectionInfos-param.rst

.. versionchanged:: 3.2

MongoDB 3.2 added support for :doc:`document validation
Expand Down