Fixed grammar in article chain-search-query-helpers-to-narrow-search-… (#35521)

* Fixed grammar in article chain-search-query-helpers-to-narrow-search-results

* Remove guide template
This commit is contained in:
Renato Francia Castillo
2019-04-02 12:16:50 -05:00
committed by The Coding Aviator
parent 781c217001
commit ce02e2746c

View File

@ -3,7 +3,7 @@ title: Chain Search Query Helpers to Narrow Search Results
--- ---
## Chain Search Query Helpers to Narrow Search Results ## Chain Search Query Helpers to Narrow Search Results
1. To create but not execut a find query 1. To create but not execute a find query
```javascript ```javascript
Model.find( {name: 'Leah'} ) Model.find( {name: 'Leah'} )
``` ```
@ -33,7 +33,7 @@ yourArray.select( {name: 0, age: 1} ) // Here: 0 means false and thus hide name
``` ```
             
6. To exec this query, you can either:</br> 6. To execute this query, you can either:</br>
&nbsp;&nbsp;1) Callback: &nbsp;&nbsp;1) Callback:
```javascript ```javascript
YourQuery.exec(function(err, docs) { YourQuery.exec(function(err, docs) {
@ -53,5 +53,3 @@ Person.find({age: 55}).sort({name: -1}).limit(5).select( {favoriteFoods: 0} ).ex
//do something here //do something here
}) })
``` ```
</br>
</br>