Skip to content

Commit 96d6c8a

Browse files
committed
Upgrade file
1 parent 89ce032 commit 96d6c8a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

UPGRADE-2.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ UPGRADE FROM 1.x to 2.0
44
* Classes in the namespace `MongoDB\Operation\` are `final`.
55
* All methods in interfaces and classes now define a return type.
66

7+
Operations with no result
8+
-------------------------
9+
10+
The following operations no longer return the raw command result. The return
11+
type changed to `void`. In case of an error, an exception is thrown.
12+
13+
* `MongoDB\Client`: `dropDatabase`
14+
* `MongoDB\Collection`: `drop`, `dropIndex`, `dropIndexes`, `dropSearchIndex`, `rename`
15+
* `MongoDB\Database`: `createCollection`, `createEncryptedCollection`, `drop`, `dropCollection`, `modifyCollection`, `renameCollection`
16+
17+
If you still need to access the raw command result, you can use a `CommandSubscriber`.
18+
719
GridFS
820
------
921

0 commit comments

Comments
 (0)