Summary
In this chapter, we created a few publications and subscribed to them. We used the fields
and limit
options to modify the number of published documents and created a simple lazy load logic for the front page of our blog.
To dig deeper into what we learned, we can take a look at Chapter 3, Storing Data and Handling Collections. While the following Meteor documentation will give us details about the options we can use in the collections find()
functions:
https://www.meteor.com/livequery
https://www.meteor.com/ddp
https://docs.meteor.com/#/full/publishandsubscribe
https://docs.meteor.com/#/full/collections
You can find this chapter's code examples 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/chapter4.
In the next chapter, we will give our app what makes a real app—different pages and routes.