btholt / btholt/complete-intro-to-databases
The mongodb exercise is returning the _id field
- Dominant language
- JavaScript
- Stars
- 168
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
According to Brian, the following line
https://github.com/btholt/db-samples/blob/c8936d2b1caf4a88982ce03ba37477c2376e5aab/mongodb/server.js#L26
is used to remove the `_id` field from the query response, but the query is returning the `_id` field.

Contributor guide
No contributing guide indexed for this repository
Research direction
Start at server.js line 26 in the linked db-samples revision and inspect the MongoDB query projection used by the exercise. Run the exercise and compare its response with the expected result; done means the returned documents no longer include the _id field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100