Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
AfiMaameDufie wants to merge14 commits intomongodb-developer:main
base:main
Choose a base branch
Loading
fromAfiMaameDufie:add-python-solutions

Conversation

@AfiMaameDufie
Copy link

I added the python solutions to the CRUD operations lab.

@AfiMaameDufieAfiMaameDufie changed the titleAdd python solutions to CRUD workshopAdd python solutions to CRUD labNov 24, 2025
@AfiMaameDufieAfiMaameDufie changed the titleAdd python solutions to CRUD labAdd python solutions to CRUD workshop challengesNov 24, 2025
Copy link
Contributor

@dfrenichedfreniche left a 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!

<TabItemvalue="python"label="Python">
<div>
```python
books_with_more_than_300_pages= books.find({"pages": {"$gt":300}})
Copy link
Contributor

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

Choose a reason for hiding this comment

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

Thanks, Diego! On it.

Copy link
Author

@AfiMaameDufieAfiMaameDufieNov 28, 2025
edited
Loading

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.

<TabItemvalue="python"label="Python">
<div>
```python
reviews = db.collection("reviews")
Copy link
Contributor

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"]

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.

<TabItemvalue="python"label="Python">
<div>
```python
reviews= db.collection("reviews")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same problem here, this worksreviews = db["reviews"]

<TabItemvalue="python"label="Python">
<div>
```python
reviews = db.collection("books")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same problem

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dfrenichedfrenichedfreniche requested changes

@sis0k0sis0k0Awaiting requested review from sis0k0sis0k0 is a code owner

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@AfiMaameDufie@dfreniche

[8]ページ先頭

©2009-2025 Movatter.jp