正如问题所述,我不能做"收集名称" 。一旦我使用meteor 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
答案 0 :(得分:2)
尝试db.users.find()通常我们用来在mongodb中找到
https://docs.mongodb.org/manual/reference/method/db.collection.find/