【发布时间】:2015-09-15 06:12:57
【问题描述】:
我正在使用meteor-autoform。我用
{{> quickForm collection="Messages" id="insertMessageForm" type="insert" fields="text"}}
它按应有的方式插入消息,但我还想在 Notification 集合中创建一个文档。如何确保每次创建新消息时都会创建通知?每次在我的应用程序的集合中创建新文档时,我都想创建通知。如何最聪明地做到这一点?我可以创建一个 afterCreate 信号吗?
【问题讨论】:
标签: javascript node.js meteor meteor-autoform