Skip to content

Added clarifications to the insert exercise instructions. #60

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions exercises/insert/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ The document should be a json document with the following properties:

`lastName` will be passed as the second argument to the lesson.

Use `console.log` to print out the object used to create the document.
Use `console.log` to print out the object that you used to create
the document. Do not print out anything other than this to the console,
or it will not be possible to verify your solution.

Make sure you use `JSON.stringify` convert it to JSON.
Since your object should be in JSON format, make sure you use
`JSON.stringify` when outputting it to the console.

-----------------------------------------------------------
## HINTS
Expand Down Expand Up @@ -68,5 +71,9 @@ If your program does not finish executing, you may have forgotten to
close the `db`. That can be done by calling `db.close()` after you
have finished.

NOTE: You will not be able to log anything to the console while running this
challenge in the test environment. You might have to get creative while
debugging!

## Resource
* http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insert