Summary
In this chapter, we learned how to store data persistently in Meteor's MongoDB database. We also saw how we can query collections and update documents. We understood what the "database everywhere" approach means and how Meteor keeps every client up to date.
To dig deeper into MongoDB and to query and update collections, take a look at the following resources:
https://www.meteor.com/full-stack-db-drivers
https://www.meteor.com/mini-databases
https://docs.meteor.com/#/full/collections
http://docs.mongodb.org/manual/core/crud-introduction/
http://docs.mongodb.org/manual/reference/operator/query/
You can find this chapter's code examples either at https://www.packtpub.com/books/content/support/17713 or on GitHub at https://github.com/frozeman/book-building-single-page-web-apps-with-meteor/tree/chapter3.
In the next chapter, we will see how to control the data flow using publications and subscriptions so that we send only the necessary documents to the clients.