Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
fix(challenges): fix typo in a "mongodb and mongoose" challenge
Browse files Browse the repository at this point in the history
Added the word "multiple" to the description of the "Use model.findOne() to Return a Single Matching
Document from Your Database"
  • Loading branch information
skoparde authored and scissorsneedfoodtoo committed Jul 27, 2018
1 parent 78d86a4 commit bd67a66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"title":
"Use model.findOne() to Return a Single Matching Document from Your Database",
"description": [
"Model.findOne() behaves like .find(), but it returns only one document (not an array), even if there are items. It is especially useful when searching by properties that you have declared as unique. Find just one person which has a certain food in her favorites, using Model.findOne() -> Person. Use the function argument food as search key."
"Model.findOne() behaves like .find(), but it returns only one document (not an array), even if there are multiple items. It is especially useful when searching by properties that you have declared as unique. Find just one person which has a certain food in her favorites, using Model.findOne() -> Person. Use the function argument food as search key."
],
"tests": [
{
Expand Down

0 comments on commit bd67a66

Please sign in to comment.