fix(challenges): fix typo in a "mongodb and mongoose" challenge

Added the word "multiple" to the description of the "Use model.findOne() to Return a Single Matching
Document from Your Database"
pull/18182/head
skoparde 2018-07-26 00:19:38 -04:00 committed by Kristofer Koishigawa
parent 78d86a4f3b
commit bd67a6693a
1 changed files with 1 additions and 1 deletions

View File

@ -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": [
{