更新时间:2023-10-20 11:28:10
答案是您无需执行任何操作.只要这些应用使用相同的数据库(由MONGO_URL
标识),它们就会对数据的变化做出反应.
The answer is that you don't have to do anything. As long as the apps use the same database (as identified by the MONGO_URL
), they will respond reactively to changes in the data.
实际上,按照本视频为什么要拆分流星应用程序.
您甚至可以使用mongo
shell来更新/插入/删除数据库中的文档,出版物将对其进行提取.
You can even use the mongo
shell to update/insert/delete documents in the database, and the publications will pick them up.