Publish documents in a collection to a meteor client depending on the existence of a specific document in another collection (publish-with-relations)

后端 未结 3 1793
[愿得一人]
[愿得一人] 2020-11-27 07:30

I have two collections

  1. Offers (relevant fields: _id)
  2. ShareRelations (relevant fields: receiverId and offerId)
<
3条回答
  •  情书的邮戳
    2020-11-27 08:10

    The way to do this is along the lines of this Question using observeChanges(). Still trying to figure out how to get it all working for my example, see Meteor, One to Many Relationship & add field only to client side collection in Publish?

提交回复
热议问题