btholt / btholt/complete-intro-to-databases

The mongodb exercise is returning the _id field

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
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.

![image](https://user-images.githubusercontent.com/10437475/103376467-63f68a80-4ae5-11eb-9aa1-d614013ba1a8.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.