O'Reilly logo

Meteor Cookbook by Isaac Strack

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing a partial collection

Partial collections are collections sent down the wire from the server that contain only part of the information available on each record. This is useful for hiding properties or fields, and also for paring down the size of records containing a lot of information. In other words, partial collections can help with security and performance. This recipe will show you how to implement a partial collection on the server.

Getting ready

Let's use the Creating upsert MongoDB queries recipe found in this chapter as a baseline for this recipe. Create a fresh copy of this recipe and then proceed to the other preparations.

Let's spruce things up just a bit as well while we're at it. In a terminal window, navigate to the root ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required