Chapter 4. Working with data

This chapter covers

  • Meteor’s default data sources
  • The principles of reactive data and computations
  • The Session object
  • Working with a MongoDB database using Collections
  • CRUD operations

As you saw in chapter 1, Meteor doesn’t rely on a traditional, server-focused architecture. It runs code and processes data on each client as well. To do so, it uses a mini-database to mimic the API of a real database inside the browser. That means you can access data in the same manner, regardless of whether you’re making a database lookup or accessing the results of a query on the browser.

All data that’s available only in a single client will obviously be lost once the client disconnects and hasn’t sent its updates back ...

Get Meteor in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.