【问题标题】:Can't use meteor mongo to do operations on collection不能使用meteor mongo对collection进行操作
【发布时间】:2015-11-19 03:25:08
【问题描述】:

正如问题所述,我不能做 "collection name" 。 find({}) 或我使用过流星 mongo 后的任何操作...请帮助。

Log: 
meteor:PRIMARY> show dbs 
admin   (empty) 
local  0.063GB
meteor  0.031GB 
meteor:PRIMARY> show collections
chats 
meteor_accounts_login
ServiceConfiguration 
profiles 
system.indexes
topics 
users 
meteor:PRIMARY> users.find() 
2015-11-18T08:43:53.240-0800 ReferenceError: users is not defined 
meteor:PRIMARY> Topics.find() 
2015-11-18T08:43:58.472-0800 ReferenceError: Topics is not defined    

meteor:PRIMARY> topics.find()
2015-11-18T08:45:26.494-0800 ReferenceError: topics is not defined

【问题讨论】:

    标签: mongodb meteor collections


    【解决方案1】:

    试试 db.users.find() 通常我们在 mongodb 中用来查找

    https://docs.mongodb.org/manual/reference/method/db.collection.find/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-10
      • 1970-01-01
      • 1970-01-01
      • 2015-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多