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
parent
78d86a4f3b
commit
bd67a6693a
|
@ -135,7 +135,7 @@
|
||||||
"title":
|
"title":
|
||||||
"Use model.findOne() to Return a Single Matching Document from Your Database",
|
"Use model.findOne() to Return a Single Matching Document from Your Database",
|
||||||
"description": [
|
"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": [
|
"tests": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue