Skip to content

Commit cf8219a

Browse files
committed
use type
1 parent 2fe8635 commit cf8219a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/MongoSwift/MongoCollection+FindAndModify.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ extension MongoCollection {
4141
* - update: a `Document` containing updates to apply
4242
* - options: Optional `FindOneAndUpdateOptions` to use when executing the command
4343
*
44-
* - Returns: Either the original or updated document depending on selected options,
45-
* or `nil` if there was no match.
44+
* - Returns: A `CollectionType` representing either the original or updated document,
45+
* depending on selected options, or `nil` if there was no match.
4646
*/
4747
@discardableResult
4848
public func findOneAndUpdate(filter: Document, update: Document,
49-
options: FindOneAndUpdateOptions? = nil) throws -> Document? {
49+
options: FindOneAndUpdateOptions? = nil) throws -> CollectionType? {
5050
throw MongoError.commandError(message: "Unimplemented command")
5151
}
5252
}

0 commit comments

Comments
 (0)