Skip to content

Commit 531e2b1

Browse files
committed
fixes
1 parent 3dcc58c commit 531e2b1

File tree

5 files changed

+9
-28
lines changed

5 files changed

+9
-28
lines changed

source/connect.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ Connect to MongoDB
2525
Create a MongoClient </connect/mongoclient>
2626
Choose a Connection Target </connect/connection-targets>
2727
Specify Connection Options </connect/connection-options>
28-
Compress Network Traffic </connect/network-compression>
29-
Customize Server Selection </connect/server-selection>
30-
Stable API </connect/stable-api>
3128
Limit Server Execution Time </connect/csot>
3229

3330
Overview

source/crud/query.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Query
2222
:titlesonly:
2323
:maxdepth: 1
2424

25+
Specify a Query </crud/query/specify-query>
2526
Find Documents </crud/query/find>
2627
Specify Documents to Return </crud/query/specify-documents-to-return>
2728
Specify Fields to Return </crud/query/project>

source/includes/usage-examples/crud-sample-app.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
import pymongo
12
from pymongo import MongoClient
23

34
try:
4-
# start example code here
5+
uri = "<connection string URI>"
6+
client = MongoClient(uri)
57

6-
# end example code here
8+
database = client["<database name>"]
9+
collection = database["<collection name>"]
710

8-
client.admin.command("ping")
9-
print("Connected successfully")
11+
# start example code here
1012

11-
# other application code
13+
# end example code here
1214

1315
client.close()
1416

source/includes/usage-examples/sample-app.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

source/reference.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Reference
1212
Compatibility </reference/compatibility>
1313
Third-Party Tools </reference/third-party-tools>
1414
Upgrade Guides </reference/upgrade>
15-
Migration Guides </reference/migrate>
15+
Migration Guides </reference/migration>
1616
Previous Versions </reference/previous-versions>

0 commit comments

Comments
 (0)