/exercise-mongoose

Adding fishes to a FishDatabase and finding them with their ID using flags.

Primary LanguageJavaScript

Commands

Add a fish

Run addFish.js in node and use flags to add fishes. You need to add a name (-n), a price (-p), a description (-d) and a category (-c). For example:

node addFish.js -n "Hobbyfish" -p 30 -d "This fish has hobbies." -c "fish"

Find a fish

Run find.js in node. This will show all fishes. You can search for a single fish using its id (--id).

node find.js --id "63491e16b67d8434e6666ca7"