Querying for data using Mongoose query selectors

Instead of SQL to query data from the database, Mongoose relies on using the JavaScript method chaining to build logical queries, which will be sent over to MongoDB once executed. The model API already exposed us to some rudimentary queries through methods like find and where, but we can expand upon those greatly with Mongoose's query API methods.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.208.181