- relationships
- queries
cd
into your project directory.npm install
to receive your dependencies.- fire up your
mongod
server.
- We've provided models for Authors and Books.
- RUN:
node populateDb.js
get add sample data to your database.
- write a endpoints to get the Books information and populate the author information for each book.
- write a
GET
request to/users/:direction
that takes the given string and returns back a list of sorted data alphebetically.- hint direction can be
asc
ordesc
so in your.sort()
method you'll have to conditionally check, and we are going to be sorting by userfirstName
- hint direction can be