maodouio / meteor-lean-startup-camp

毛豆网Meteor精益创业孵化营
63 stars 23 forks source link

请教下 客户端和服务器端数据不同步了 #11

Closed cobola closed 9 years ago

cobola commented 9 years ago

client端 console 用 Posts.find() 是空

server端 meteor mongo 进入后 用 db.posts.find() 查数据 有数据

不知道是不是mongo数据库的原因 我用meteor update升级 好像是升级到mongodb 3.0 可是用 meteor shell进入后显示的还是 meteor 2.6

具体的代码

meteorbb 项目 dev分支

/lib/router/posts.js 第30行

可以看到 count是0

这样的问题 怎么查 目前还没有头绪...

cobola commented 9 years ago

应该不是数据库的原因 是是我的问题

kevingzhang commented 9 years ago

Have you subscribe and publish data to client? On Mar 19, 2015 7:00 AM, "cobola" notifications@github.com wrote:

应该不是数据库的原因 是是我的问题

— Reply to this email directly or view it on GitHub https://github.com/limingth/meteor-lean-startup-camp/issues/11#issuecomment-83590897 .

cobola commented 9 years ago

搞定了。。删掉了一个属性 然后搜索的时候 就搜不到结果了