Skip to content

Commit 0dee625

Browse files
authored
PHPLIB-740: Support authorizedCollections option for listCollections (#884)
* PHPLIB-740: Support authorizedCollections option for listCollections * Update tests and docs for authorizedDatabases option
1 parent d95406d commit 0dee625

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: boolean
44
description: |
55
A flag that determines which databases are returned based on the user
66
privileges when access control is enabled. For more information, see the
7-
`listDatabases command documentation <https://docs.mongodb.com/manual/reference/command/listDatabases/#dbcmd.listDatabases>`_.
7+
`listDatabases command documentation <https://docs.mongodb.com/manual/reference/command/listDatabases/>`_.
88
99
For servers < 4.0.5, this option is ignored.
1010

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
arg_name: option
2+
name: authorizedCollections
3+
type: boolean
4+
description: |
5+
A flag that determines which collections are returned based on the user
6+
privileges when access control is enabled. For more information, see the
7+
`listCollections command documentation <https://docs.mongodb.com/manual/reference/command/listCollections/>`_.
8+
9+
For servers < 4.0, this option is ignored.
10+
11+
.. versionadded:: 1.12
12+
interface: phpmethod
13+
operation: ~
14+
optional: true
15+
---
16+
arg_name: option
217
name: filter
318
type: array|object
419
description: |

0 commit comments

Comments
 (0)