CHAPTER 5

image

Dealing with Data

Meteor does a wonderful job of making the syncing of client-side data, something traditionally difficult, very easy. It does this by providing a client-side implementation of MongoDB, called MiniMongo, which syncs with the backend database and pushes to other clients in realtime. This amazing feature is both simple to use and extremely powerful. This chapter will describe setting up Meteor collections and using them to pass data around an app.

Collections

In previous chapters, clans were included as an array of objects in memory to illustrate how basic reactivity works. This worked well for prototyping the clans view, ...

Get Introducing Meteor 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.