Skip to content

Commit

Permalink
Add note in docs re empty objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1mmy committed Feb 17, 2012
1 parent c309647 commit 1ce3f3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/client/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ <h2 id="meteor"><span>Meteor</span></h2>
});
</pre>

<p>Publish acts on individual attributes of objects. If an object has no
attributes except <code>_id</code>, it will not be published to the
client. Generally, empty object are not very useful so this is not a
problem. If you need to create and track an object and assign it
properties later, create it with a simple property
eg: <code>collection.insert({exists: true});</code>
</p>


<!------------------------------------------------------------------->
<!-- Meteor.subscribe -------------------------------------------------->

Expand Down

0 comments on commit 1ce3f3b

Please sign in to comment.