Skip to content

Commit c1686b0

Browse files
committed
Merge pull request #485
2 parents a1c89aa + ea060c4 commit c1686b0

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

source/includes/apiargs-MongoDBClient-method-listDatabases-option.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
arg_name: option
2+
name: filter
3+
type: array|object
4+
description: |
5+
A query expression to filter the list of databases.
6+
7+
You can specify a query expression for database fields (e.g. ``name``,
8+
``sizeOnDisk``, ``empty``).
9+
10+
.. versionadded:: 1.3
11+
interface: phpmethod
12+
operation: ~
13+
optional: true
14+
---
115
source:
216
file: apiargs-common-option.yaml
317
ref: maxTimeMS

source/includes/apiargs-MongoDBDatabase-method-listCollections-option.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ type: array|object
44
description: |
55
A query expression to filter the list of collections.
66
7-
You can specify a query expression on the collection ``name`` and ``options``.
7+
You can specify a query expression for collection fields (e.g. ``name``,
8+
``options``).
9+
10+
For server versions < 3.0, the filter can only be used to match the ``name``
11+
field with a string value. More complex filters will result in an exception at
12+
execution time if used.
813
interface: phpmethod
914
operation: ~
1015
optional: true

0 commit comments

Comments
 (0)