Skip to content

Commit

Permalink
Update source/sessions/driver-sessions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Preston Vasquez <prestonvasquez@icloud.com>
  • Loading branch information
blink1073 and prestonvasquez committed May 10, 2024
1 parent b369e76 commit 82fda4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/sessions/driver-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ parent MongoDatabase is created.

Instead, we require users to pass session as a parameter to each function:

````
```javascript
session = client.startSession(...)
database = client.getDatabase(...)
Expand All @@ -855,7 +854,6 @@ collection = database.getCollection(...)
collection.insertOne(session, {})
session.endSession()
```
````

### Why does a network error cause the `ServerSession` to be discarded from the pool?

Expand Down

0 comments on commit 82fda4d

Please sign in to comment.