Receive a command-line tour of the Mongo structure.
- [Instructor] Now we've got the data imported…into a MongoDB collection.…Before updating our code to work directly with mongo,…let's do some exploration using the mongo shell.…First, open up your terminal, start the mongo shell,…and to get a list of all the documents in the collection,…you can just run a find on the collection itself.…So that's db.tasks.find.…Great, but what can we do within that collection?…We can perform all of the CRUD operations,…create, read, update, and delete.…
Let's work through those here,…so you can see how this interface works.…The first, pretty simple task is,…find with matching a specific field.…Our data isn't very complex but you can get a good idea…of what's happening with these examples.…So if you use up arrow, you can get back…to the previous command,…and db.tasks.find({owner:"Kirsten"}).…Okay, well, as it turns out, all of the tasks…are owned by me, but it's still a good place to start.…
Notice that this command is actually functionally equivalent…to a more complicated expression.…
Author
Released
4/4/2017- Setting up the development environment
- Consuming an API using HTTPie
- Inspecting Mongo data
- Updating the server for MongoDB read functionality
- Setting up application endpoints
- Implementing user endpoints, progress endpoints, and promises
Skill Level Intermediate
Duration
Views
Related Courses
-
Node.js: Build Your First Microservice
with Daniel Khan2h 9m Intermediate -
Building a Website with Node.js and Express.js
with Ray Villalobos3h 16m Intermediate -
Switching to ES6 in Node.js
with Ryan Lewis2h 10m Intermediate
-
Introduction
-
Welcome59s
-
Exercise files1m 9s
-
Technology stack3m 32s
-
Useful tools1m 57s
-
Hapi hello world3m 27s
-
-
1. API Fundamentals
-
HTTP fundamentals8m 43s
-
REST API basics9m 55s
-
API example in Hapi8m 7s
-
-
2. Database Setup
-
MongoDB overview4m 13s
-
Sample data import4m 21s
-
Inspecting the Mongo data6m 31s
-
-
3. Set Up the Fitbit API
-
Get set up with Fitbit2m 57s
-
Storing data in MongoDB9m 42s
-
-
4. Create the Progress API
-
Set up application endpoints3m 10s
-
Implement user endpoints9m 42s
-
Implement progress endpoints15m 29s
-
Additional interactions4m 19s
-
Subscriptions4m 53s
-
-
Conclusion
-
Next steps41s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Inspecting the Mongo data