-
Notifications
You must be signed in to change notification settings - Fork 7
Add python solutions to CRUD workshop challenges #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add python solutions to CRUD workshop challenges #32
Conversation
dfreniche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, but some changes are needed, please review. Thanks!
docs/40-CRUD/1-WHERE.mdx
Outdated
| <TabItem value="python" label="Python"> | ||
| <div> | ||
| ```python | ||
| books_with_more_than_300_pages = books.find({"pages": {"$gt": 300}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the spaces at the start of each line in this snippet, copying and pasting fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Diego! On it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this many ways in the IDE. This will work for the other part however, after the dictionary, it will add an indent because it was nested.
docs/40-CRUD/4-INSERT-DELETE.mdx
Outdated
| <TabItem value="python" label="Python"> | ||
| <div> | ||
| ```python | ||
| reviews = db.collection("reviews") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is failing on me... but this works:
reviews = db["reviews"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies - forgot reviews is a collection.
docs/40-CRUD/4-INSERT-DELETE.mdx
Outdated
| <TabItem value="python" label="Python"> | ||
| <div> | ||
| ```python | ||
| reviews = db.collection("reviews") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same problem here, this works reviews = db["reviews"]
docs/40-CRUD/5-UPDATE.mdx
Outdated
| <TabItem value="python" label="Python"> | ||
| <div> | ||
| ```python | ||
| reviews = db.collection("books") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same problem
I added the python solutions to the CRUD operations lab.