Skip to content

Conversation

bohyunjung
Copy link
Member

@sourabhbagrecha This PR includes some crucial changes for the lab.

2aa9bf6

9e4e76f

This commit includes the suggestion by sis0k0: #16

  • fixes some lab codes that won't run against the DB included in jedee
  • For example, db.books.find({ genres: "Science" }) doesn't work as the document structure in jedee is as follows.
"genre": [
  {
    "genreId": 5639,
    "name": "Police"
  }
]

3c4e1d9

  • changes the challenge question for the significant sort result
    • max numAuthors is now 8, as it was 2
  • Check if the authors field exists before getting the size
    • Otherwise, the lab environment yields the error as below due to the documents without the authors field.
PlanExecutor error during aggregation :: caused by :: The argument to $size must be an array, but was of type: missing

- Change challenge question to year 2000 for more significant sort
- Check if authors field exists before getting the size
@sourabhbagrecha sourabhbagrecha merged commit 9fb00b7 into mongodb-developer:main Jun 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants