Chapter 3. Storing Data and Handling Collections
In the previous chapter, we learned how to build templates and display data in them. We built the basic layout of our app and listed some post examples on the front page.
In this chapter, we will add post examples persistently to our database on the server. We will learn how we can access this data later on the client and how Meteor syncs data between clients and the server.
In this chapter, we'll cover the following topics:
- Storing of data in Meteor
- Cresting collections
- Adding data to a collection
- Querying data from a collection
- Updating data in a collection
- What "database everywhere" means
- The difference between the server's and the client's databases
Note
If you've jumped right into the chapter and want to follow the examples, download the previous chapter's code examples from either the book's web page at https://www.packtpub.com/books/content/support/17713 or from the GitHub repository at https...