Skip to content

Commit 464879c

Browse files
committed
fix: use '_id' instead of 'id' in readme example
1 parent abc7a02 commit 464879c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/examples/src/create_db_and_doc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
# 3. Create a document ================================================
4141
# Create a document object with "example" id
4242
example_doc_id = "example"
43-
# Setting `id` for the document is optional when "post_document"
44-
# function is used for CREATE. When `id` is not provided the server
43+
# Setting `_id` for the document is optional when "post_document"
44+
# function is used for CREATE. When `_id` is not provided the server
4545
# will generate one for your document.
46-
example_document: Document = Document(id=example_doc_id)
46+
example_document: Document = Document(_id=example_doc_id)
4747

4848
# Add "name" and "joined" fields to the document
4949
example_document.name = "Bob Smith"

0 commit comments

Comments
 (0)