Skip to content

Conversation

@patrickfreed
Copy link
Contributor

@patrickfreed patrickfreed requested a review from kmahar February 11, 2021 20:36
```swift
let query: BSONDocument = ["a": 1]
let result = collection.find(query).flatMap { cursor in
let options = FindOptions(sort: ["_id": -1])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it would be obvious from context what this is doing. maybe we could add a comment or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. I figure these examples will largely be used for copy/paste, so I included the comment in both examples to ensure it gets picked up regardless of how a user tries out the driver.

@patrickfreed patrickfreed merged commit 0fd0cbc into mongodb:main Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants